• 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!

TFS 1.X+ Npc remover

theduck

Member
Joined
Dec 6, 2018
Messages
246
Reaction score
20
Lua:
local function removeNpc(name)
    local guy = Npc(name)
    if guy and guy:isNpc() then
        guy:remove()
    end
end

local npctest = 

Game.createNpc("test", Position(32464, 32482, 7))
Game.createNpc("test", Position(32464, 32482, 7))
Game.createNpc("test", Position(32464, 32482, 7))
Game.createNpc("test", Position(32464, 32482, 7))
Game.createNpc("test", Position(32464, 32482, 7))
Game.createNpc("test", Position(32464, 32482, 7))
 
 addEvent(removeNpc, 1000, npctest:getName())


he is removing only 1 times two npcs
and not all at the same time
 
Back
Top