This function is used to play animation on player for all players.
Original: playAni
Declaration
async def playAni(id : int, aniName : str)
Parameters
int id: the player id.
str aniName: the name of the animation, e.g: "T_STAND_2_SIT".
Source code in src/pyg2o/functions/player.py
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156 | async def playAni(id : int, aniName : str):
"""
This function is used to play animation on player for all players.
Original: [playAni](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/playAni/)
## Declaration
```python
async def playAni(id : int, aniName : str)
```
## Parameters
`int` **id**: the player id.
`str` **aniName**: the name of the animation, e.g: `"T_STAND_2_SIT"`.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|