- Messages
- 28
- Country

I am making an aircraft that has an auxiliary intake door that opens progressively below Mach 0.55. I have managed to get this animation to work fine without much hassle but now I want to add the extra parameter of the engines needing to be running for the door to be open, my animation doesn't seem to work with the extra additions to my code, can anyone spot the issue?
"rintake" is the one that I'm testing with the engine needing to be running code, "lintake" is the working door closing with speed code.
"rintake" is the one that I'm testing with the engine needing to be running code, "lintake" is the working door closing with speed code.
Code:
<!-- Custom intake animations -->
<Component ID="GT">
<UseTemplate Name="ASOBO_GT_Anim_Code">
<ANIM_NAME>rintake</ANIM_NAME>
<ANIM_CODE>
(A:ENG COMBUSTION:3, bool) 1 == if{ (A:AIRSPEED MACH, mach) 100 * 55 - abs }
els{ 0 }
</ANIM_CODE>
<ANIM_LENGTH>55</ANIM_LENGTH>
<ANIM_LAG>50</ANIM_LAG>
</UseTemplate>
<UseTemplate Name="ASOBO_GT_Anim_Code">
<ANIM_NAME>lintake</ANIM_NAME>
<ANIM_CODE>(A:AIRSPEED MACH, mach) 100 * 55 - abs</ANIM_CODE>
<ANIM_LENGTH>55</ANIM_LENGTH>
</UseTemplate>
</Component>
