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

462 B

event onNpcDestroyed

This event is triggered when remote NPC is created.

Original: onNpcDestroyed

Parameters

  • dict kwargs:
    • int npc_id: the id of the destroyed remote npc.

Usage

import g2o
        
@g2o.event('onNpcDestroyed')
def onNpcDestroy(**kwargs):
    print(f'NPC {kwargs['npc_id']} has been destroyed.')