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