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 pyg2o as g2o
@g2o.event('onNpcActionFinished')
async def onActionFinished(npc_id, action_type, action_id, result):
print(f'NPC {npc_id} finished action {action_type} with the result {result}.')