Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x = 0
- local y = 0
- local z = 10
- local timer = 0
- for _,splayer in ipairs(minetest.env:get_objects_inside_radius(pos, 1)) do
- if splayer:is_player () then
- minetest.register_globalstep(function(dtime)
- timer = timer + dtime;
- if splayer:is_player () then
- if timer >= 10 then
- splayer:setpos(x,y,z)
- x = x + 10
- y = y + 10
- timer = 0
- end
- end
- )
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement