458 B
458 B
event onNpcCreated
This event is triggered when remote NPC is created.
Original: onNpcCreated
Parameters
dictkwargs:intnpc_id: the id of the newly created remote npc.
Usage
import pyg2o as g2o
@g2o.event('onNpcCreated')
async def onNpcCreate(npc_id):
print(f'NPC {npc_id} has been created.')