event onPlayerSummon (client-side)
Available since version: 0.3.0
Note
The summoned NPC exists when this event is triggered. This event is not triggered when an existing summon streams in.
This event is triggered when a player summons an NPC using a game's spell.
Parameters
void onPlayerSummon(number playerId, number spellId, string summonInstance, number npcId)
numberplayerId: The id of the player who summoned the NPC.numberspellId: The id of the spell used to summon the NPC.stringsummonInstance: The instance name of the summoned NPC.numbernpcId: The id of the summoned NPC.