a guest Jul 6th, 2018 3 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- local pd = minetest.get_player_by_name(name)
- local pos = pd:get_pos()
- for _, obj in ipairs(minetest.get_objects_inside_radius(pos, 2)) do
- if obj:get_luaentity() then
- local ent = obj:get_luaentity()
- if ent.name == "carts:cart" and not ent.driver then
- ent.driver = name
- boost_cart:manage_attachment(pd, obj.object)
- return true,"Entered a cart."
- end --- IF OBJECT IS ENTITY END
- end --- LOOP END
RAW Paste Data