event onNpcChangeHostPlayer (server-side)
Available since version: 0.3.0
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.
Parameters
int npc_id, int current_id, int previous_id
intnpc_id: the id of the remote npc.intcurrent_id: the id of the current host, can be -1 if there is no current host.intprevious_id: the id of the previous host, can be -1 if there was no previous host.