mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
added engine stop on hard landing
This commit is contained in:
parent
0963a3dc1a
commit
d2aceab50d
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue