From dbc03948c4b16496d1a4f2908a51028eaa38a28c Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sat, 5 Oct 2024 13:50:51 -0300 Subject: [PATCH] added option to not animate the model as having propeller '_no_propeller' --- lib_planes/utilities.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib_planes/utilities.lua b/lib_planes/utilities.lua index e65db16..e4da815 100644 --- a/lib_planes/utilities.lua +++ b/lib_planes/utilities.lua @@ -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