Skip to content

function stopFaceAni

This function is used to stop played face animation on player.
Original: stopFaceAni

Declaration

async def stopFaceAni(id : int, aniName : str)

Parameters

int id: the player id.
str aniName: the name of the animation that you want to stop. The default value is "" which means that the first active ani will be stopped.

Source code in src/pyg2o/functions/player.py
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
async def stopFaceAni(id : int, aniName : str = ""):
    """
    This function is used to stop played face animation on player.
    Original: [stopFaceAni](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/stopFaceAni/)

    ## Declaration
    ```python
    async def stopFaceAni(id : int, aniName : str)
    ```
    ## Parameters
    `int` **id**: the player id.
    `str` **aniName**: the name of the animation that you want to stop. The default value is \"\" which means that the first active ani will be stopped.
    """
    data = f'return {get_call_repr()}'

    server = await PythonWebsocketServer.get_server()
    result = await server.make_request(data)
    return result