Rename create game element funcs to "spawn"
This commit is contained in:
@@ -756,4 +756,21 @@ function createNPC(skinIndex, position, heading, interior, dimension) {
|
||||
return npcIndex - 1;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function despawnAllNPCs() {
|
||||
for (let i in getServerData().npcs) {
|
||||
destroyGameElement(getServerData().npc[i].npc);
|
||||
getServerData().npc[i].npc = null;
|
||||
}
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function spawnAllNPCs() {
|
||||
for (let i in getServerData().npcs) {
|
||||
spawnNPC(i);
|
||||
}
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
Reference in New Issue
Block a user