676 B
676 B
event onNpcActionSent
This event is triggered when NPC host is changed. Every remote NPC is hosted by one of spawned players in order to get valid position of NPC.
Original: onNpcActionSent
Parameters
dictkwargs:intnpc_id: the npc identifier.intcurrent_id: the action type.intprevious_id: the unique action identifier.
Usage
import pyg2o as g2o
@g2o.event('onNpcActionSent')
async def onActionSent(npc_id, action_type, action_id):
print(f'NPC {npc_id} sent action {action_id}.')