Zoe Skandinavia
Member
- Joined
- Jul 18, 2014
- Messages
- 193
- Solutions
- 2
- Reaction score
- 15
Hi!, i want to create an script which helps me to remove players who fall in a nil tile, that is to say in a place where there isn't floor.
I was thinking in something like this:
But nothing happens. It has an interval of 30 to be quick.
Somebody can help me, please?
Thanks.
PD: Im using TFS 1.2.
I was thinking in something like this:
Code:
function onThink(interval)
for _, player in ipairs(Game.getPlayers()) do
local t = Tile(player:getPosition())
if t == nil then
player:remove()
end
end
return true
end
But nothing happens. It has an interval of 30 to be quick.
Somebody can help me, please?
Thanks.
PD: Im using TFS 1.2.