mirror of
https://github.com/APercy/airutils
synced 2025-11-16 11:38:00 +01:00
added engine stop on hard landing
This commit is contained in:
parent
0963a3dc1a
commit
d2aceab50d
@ -442,6 +442,12 @@ function airutils.testImpact(self, velocity, position)
|
||||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
}, true)
|
||||
|
||||
--stop engine
|
||||
if damage > 7 then
|
||||
self._power_lever = 0
|
||||
self._engine_running = false
|
||||
end
|
||||
|
||||
airutils.setText(self, self._vehicle_name)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user