• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Npc Spawn

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,200
Solutions
2
Reaction score
149
LUA:
Game.createNpc("Npc Name", Position(11111, 11111, 1), false, true)

This script above create an npc, but the npc are walking on a big radius, someone know how to limit this like RME limiting the spawn radius?

tfs 1.2
 
Code:
local pos = Position(x, y, z)
local npc = Game.createNpc("Npc Name", pos, false, true)
if npc then
       npc:setMasterPos(pos)
end
 
Solution
Back
Top