Advertisement
Guest User

Untitled

a guest
Feb 28th, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local x = 0
  2. local y = 0
  3. local z = 10
  4. local timer = 0
  5.  
  6. for _,splayer in ipairs(minetest.env:get_objects_inside_radius(pos, 1)) do
  7.     if splayer:is_player () then
  8.         minetest.register_globalstep(function(dtime)
  9.             timer = timer + dtime;
  10.                 if splayer:is_player () then
  11.                     if timer >= 10 then
  12.                         splayer:setpos(x,y,z)
  13.                     x = x + 10
  14.                     y = y + 10
  15.                     timer = 0
  16.                     end
  17.                 end
  18.             )
  19.             end
  20.         end
  21.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement