function spawnNpc (client-side)
Available since version: 0.3.0
Spawn a previously created NPC into the world using an optional instance.
Declaration
bool spawnNpc(int npc_id, string|nil instance_name)
Parameters
intnpc_id: Internal npc id.string|nilinstance_name: Optional instance name (e.g., "PC_HERO").
Returns bool
True if spawn attached to world.