diff --git a/framework.lua b/framework.lua index 7792cdc..5348e99 100644 --- a/framework.lua +++ b/framework.lua @@ -26,6 +26,7 @@ function vehicle_mash.register_vehicle(name, def) passenger3_eye_offset = def.passenger3_eye_offset, passenger3_detach_pos_offset = def.passenger3_detach_pos_offset, + enable_crash = def.enable_crash or true, visual = def.visual, mesh = def.mesh, textures = def.textures, @@ -139,7 +140,7 @@ function vehicle_mash.register_vehicle(name, def) end end, on_step = function(self, dtime) - drive(self, dtime, false, nil, nil, 0, def.can_fly, def.can_go_down, def.can_go_up) + drive(self, dtime, false, nil, nil, 0, def.can_fly, def.can_go_down, def.can_go_up, def.enable_crash) end })