- Messages
- 15
Hey guys. I intend to do a looping animation for my upcoming AI E3A sentry.
The idea is that the radar should start rotating after clearing a certain altitude (FL150).
This is the code I found and having tested it I know it works, and the animation does stop after dropping below said altitude but I have a couple of issues with it:
1. I'm not sure if adding lag tags to this code will slow the animations down since the part is not animated by keyframes. Is there a way to implement this animation with keyframes, or to slow the animation down by alternative methods?
2. The problem with this code is that when animation stops the radar is reset to the position it holds at keyframe 0. Is there a way for the animation to stop while holding the current keyframe (if it were animated that way) much like the real radar would in real life? AWACS radars are not set to any particular position when taking off or landing, rather their rotation is powered off and they remain in place, and this is the behaviour I seek to replicate. Don't know if that makes any sense.
Thanks beforehand for your time and help.
The idea is that the radar should start rotating after clearing a certain altitude (FL150).
This is the code I found and having tested it I know it works, and the animation does stop after dropping below said altitude but I have a couple of issues with it:
Code:
<part>
<name>sentry_radome</name>
<animation>
<rotation>Z</rotation>
<parameter>
<code>
(A:Indicated Altitude,feet) 15000 >
if{ (E:ABSOLUTE TIME, second) 360 * dgrd } els{ 0 }
</code>
</parameter>
</animation>
</part>
1. I'm not sure if adding lag tags to this code will slow the animations down since the part is not animated by keyframes. Is there a way to implement this animation with keyframes, or to slow the animation down by alternative methods?
2. The problem with this code is that when animation stops the radar is reset to the position it holds at keyframe 0. Is there a way for the animation to stop while holding the current keyframe (if it were animated that way) much like the real radar would in real life? AWACS radars are not set to any particular position when taking off or landing, rather their rotation is powered off and they remain in place, and this is the behaviour I seek to replicate. Don't know if that makes any sense.
Thanks beforehand for your time and help.




