Files
PyG2O/docs/defaultEvents/npc/onNpcActionFinished.md
2024-11-06 11:50:14 +03:00

687 B

event onNpcActionFinished

This event is triggered when NPC action was finished.

Original: onNpcActionFinished

Parameters

  • dict kwargs:
    • int npc_id: the npc identifier.
    • int action_type: the action type.
    • int action_id: the unique action identifier.
    • bool result: 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']}.')