SetNPCLocation
From Onset Developer Wiki
Description
__EDIT_ME__
Syntax
SetNPCLocation(npc, x, y, z)
Parameters
- npc
NPC which you want to teleport - x
X coordinate - y
Y coordinate - z
Z coordinate
Return Value
- __EDIT_ME__
Example
function bringNPC(player, npc)
local x,y,z = GetPlayerLocation(player)
SetNPCLocation(tonumber(npc), x,y,z)
end
AddCommand('bringnpc', bringNPC)
See also
__EDIT_ME__