Files
PyG2O/python/docs/defaultEvents/player/onPlayerToggleFaceAni.md
2025-01-25 00:02:52 +03:00

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

  • dict kwargs:
    • int playerid: the id of the player who gets teleported by the game.
    • str aniName: the face animation name.
    • bool toggle: true when player is started playing face animation, otherwise false.

Usage

import g2o
        
@g2o.event('onPlayerToggleFaceAni')
def onToggleFA(**kwargs):
    if kwargs['toggle']:
        print(kwargs['player'], 'started face ani',kwargs['aniName'])