mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 00:01:20 +00:00
added option to not animate the model as having propeller '_no_propeller'
This commit is contained in:
parent
99f0b94cd9
commit
dbc03948c4
1 changed files with 3 additions and 1 deletions
|
@ -712,7 +712,9 @@ function airutils.engine_set_sound_and_animation(self)
|
|||
if self._engine_running then
|
||||
if self._last_applied_power ~= self._power_lever and not self._autopilot then
|
||||
self._last_applied_power = self._power_lever
|
||||
self.object:set_animation_frame_speed(60 + self._power_lever)
|
||||
if not self._no_propeller then
|
||||
self.object:set_animation_frame_speed(60 + self._power_lever)
|
||||
end
|
||||
airutils.engineSoundPlay(self)
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue