SHARE
TWEET

Untitled

a guest Jul 6th, 2018 6 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 not ent.driver then
  9. boost_cart.manage_attachment(pd, ent)
  10. end
  11.  
  12. end --- IF OBJECT IS ENTITY END
  13. 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