SHARE
TWEET

Untitled

a guest Jul 6th, 2018 5 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top