a guest Jul 6th, 2018 4 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 ent.driver and ent.driver == name then
- ent.driver = nil
- boost_cart:manage_attachment(pd, obj.object)
- return true,"Left the cart."
- end --- IF OBJECT IS ENTITY END
- end --- LOOP END
RAW Paste Data