SHARE
TWEET

Untitled

a guest Jul 7th, 2018 2 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, 3)) do
  5.         if obj:get_luaentity() then
  6.         local ent = obj:get_luaentity()
  7.  
  8.                         if ent.name == "carts:cart" and not ent.driver then
  9.                         ent.driver = name
  10.                         boost_cart:manage_attachment(pd, obj.object)
  11.                         return true,"Entered a 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