687 B
687 B
event onNpcActionFinished
This event is triggered when NPC action was finished.
Original: onNpcActionFinished
Parameters
dictkwargs:intnpc_id: the npc identifier.intaction_type: the action type.intaction_id: the unique action identifier.boolresult: the result of finished action.
Usage
import g2o
@g2o.event('onNpcActionFinished')
def onActionFinished(**kwargs):
print(f'NPC {kwargs['npc_id']} finished action {kwargs['action_type']} with the result {kwargs['result']}.')