mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 00:01:20 +00:00
added support for animation start change (just for fuselage)
This commit is contained in:
parent
d3b677b8a5
commit
8bf6bb87aa
2 changed files with 8 additions and 1 deletions
|
@ -70,7 +70,14 @@ function airutils.on_activate(self, staticdata, dtime_s)
|
|||
|
||||
self.object:set_armor_groups({immortal=1})
|
||||
|
||||
self.object:set_animation({x = 1, y = self._anim_frames}, 0, 0, true)
|
||||
local start_frame = 1
|
||||
local end_frame = self._anim_frames
|
||||
if self._anim_start_frame then
|
||||
start_frame = self._anim_start_frame
|
||||
end_frame = self._anim_start_frame + self._anim_frames
|
||||
end
|
||||
|
||||
self.object:set_animation({x = start_frame, y = end_frame}, 0, 0, true)
|
||||
if self.wheels then
|
||||
self.wheels:set_animation({x = 1, y = self._anim_frames}, 0, 0, true)
|
||||
end
|
||||
|
|
BIN
sounds/airutils_engine.ogg
Normal file
BIN
sounds/airutils_engine.ogg
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue