727 B
727 B
event onNpcChangeHostPlayer
This event is triggered when server sends NPC action to streamed players.
Original: onNpcChangeHostPlayer
Parameters
dictkwargs: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.
Usage
import g2o
@g2o.event('onNpcChangeHostPlayer')
def onChangeHostPlayer(**kwargs):
print(f'NPC {kwargs['npc_id']} sent {kwargs['action_type']} to all players.')