Advertisement
Guest User

Untitled

a guest
Jul 6th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local pd = minetest.get_player_by_name(name)
  2. local pos = pd:get_pos()
  3.  
  4. for _, obj in ipairs(minetest.get_objects_inside_radius(pos, 2)) do
  5. if obj:get_luaentity() then
  6. local ent = obj:get_luaentity()
  7.  
  8. if ent.name == "carts:cart" and ent.driver and ent.driver == name then
  9. ent.driver = nil
  10. boost_cart:manage_attachment(pd, obj.object)
  11. return true,"Left the cart."
  12. end
  13.  
  14. end --- IF OBJECT IS ENTITY END
  15. end --- LOOP END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement