Files
PyG2O/docs/defaultEvents/npc/onNpcDestroyed.md
2025-04-15 13:13:31 +03:00

465 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 pyg2o as g2o
        
@g2o.event('onNpcDestroyed')
async def onNpcDestroy(npc_id):
    print(f'NPC {npc_id} has been destroyed.')