Skip to content

function unspawnNpc (client-side)

Available since version: 0.1.1


This function won't destroy npc, only remove it from the current world. In order to permanently delete npc, you have to call destroyNpc instead.

This function will remove npc from the current world.


bool unspawnNpc(int npcId)


  • int npcId: the npc id.

Returns bool

true when npc was successfully unspawned, otherwise false.