Skip to content

event onPlayerSummon (server-side)

Available since version: 0.3.0

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)
  • number playerId: The id of the player who summoned the NPC.
  • number spellId: The id of the spell used to summon the NPC.
  • string summonInstance: The instance name of the summoned NPC.
  • number npcId: The id of the summoned NPC.