spawnNpc
spawnNpc(
world,spawn):Entity
Spawns an NPC: a character a routine drives, under the server’s authority, with its routines’ machine beside it. The caller adds its body and destroys it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
spawn |
NpcSpawn |
Returns
Section titled “Returns”Entity