Skip to content

function playFaceAni

This function is used to play face animation on player.
Original: playFaceAni

Declaration

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

Parameters

int id: the player id.
str aniName: the name of the animation, e.g: "S_FRIENDLY".

Source code in src/pyg2o/functions/player.py
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
async def playFaceAni(id : int, aniName : str):
    """
    This function is used to play face animation on player.
    Original: [playFaceAni](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/playFaceAni/)

    ## Declaration
    ```python
    async def playFaceAni(id : int, aniName : str)
    ```
    ## Parameters
    `int` **id**: the player id.
    `str` **aniName**: the name of the animation, e.g: `"S_FRIENDLY"`.
    """
    data = f'return {get_call_repr()}'

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