761 B
761 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')
def onToggleFA(**kwargs):
if kwargs['toggle']:
print(kwargs['player'], 'started face ani',kwargs['aniName'])