johnnymanly
New member
I'd like to animate a prop in a Lua vessel.
I can set the animation like this:
but I don't know how to repeat the animation. (loop?)
Any hint would be appreciated.
Thanks.
I can set the animation like this:
Code:
pwr = vi:get_animation(anim_Prop)
da = simdt * 0.1
pwr_proc = pwr + da
gas = vi:get_thrusterlevel(thmain)
if
gas > 0
then
vi:set_animation(anim_Prop,pwr_proc)
end
Any hint would be appreciated.
Thanks.