mirror of
https://github.com/APercy/airutils.git
synced 2025-03-21 18:41:21 +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
|
@ -443,6 +443,12 @@ function airutils.testImpact(self, velocity, position)
|
||||||
pitch = 1.0,
|
pitch = 1.0,
|
||||||
}, true)
|
}, true)
|
||||||
|
|
||||||
|
--stop engine
|
||||||
|
if damage > 7 then
|
||||||
|
self._power_lever = 0
|
||||||
|
self._engine_running = false
|
||||||
|
end
|
||||||
|
|
||||||
airutils.setText(self, self._vehicle_name)
|
airutils.setText(self, self._vehicle_name)
|
||||||
|
|
||||||
if self.driver_name then
|
if self.driver_name then
|
||||||
|
|
Loading…
Add table
Reference in a new issue