757 B
757 B
event onPlayerTeleport
This event is triggered when player face animation is toggled (played or stopped), due to eating or other activities.
Original: onPlayerToggleFaceAni
Parameters
dictkwargs:intplayerid: the id of the player who gets teleported by the game.straniName: the face animation name.booltoggle:truewhen player is started playing face animation, otherwisefalse.
Usage
import g2o
@g2o.event('onPlayerToggleFaceAni')
async def onToggleFA(playerid, aniName, toggle):
if toggle:
print(playerid, 'started face ani', aniName)