- Messages
- 54
- Country

hi all,
I'm not expert of coding and in my aircraft I'm doing a custom animation for my canopy. It works but not well as I need .
To make it works I have took parts of code from other aircraft and I have assembled in this way the animation.
Just to fix my custom code to do work the canopy as I need , I ask to someone expert in code , to explain me if possible , the meaning of this instruction ( in bold ) , so If I able to understand it I can think how to modify in some way this code so to optimize my canopy animation.
<PartInfo>
<Name>Canopy_int</Name>
<AnimLength>100</AnimLength>
<Animation
<Parameter>
<Code>
(L:CanopyHandle, bool) 100 * == (A:SIM ON GROUND, Bool) == (A:ENG COMBUSTION:1,bool) ! and (A:AIRSPEED TRUE, Knots) 30 < and if{ 100 } els{ 0 }
</Code>
<Lag>50</Lag>
</Parameter>
</Animation>
</PartInfo>
I think I understand that: "I can manage canopy handle if my aircraft is on ground , if the engine it's not running and the airspeed it's not over 30 kt ... I don't understand the final with "if... else .." and I don't understand well the first part, " .... bool ) 100 * "
bool meaning to use 1 or 0 ?
Hope someone could help me to understand
THANKS
I'm not expert of coding and in my aircraft I'm doing a custom animation for my canopy. It works but not well as I need .
To make it works I have took parts of code from other aircraft and I have assembled in this way the animation.
Just to fix my custom code to do work the canopy as I need , I ask to someone expert in code , to explain me if possible , the meaning of this instruction ( in bold ) , so If I able to understand it I can think how to modify in some way this code so to optimize my canopy animation.
<PartInfo>
<Name>Canopy_int</Name>
<AnimLength>100</AnimLength>
<Animation
<Parameter>
<Code>
(L:CanopyHandle, bool) 100 * == (A:SIM ON GROUND, Bool) == (A:ENG COMBUSTION:1,bool) ! and (A:AIRSPEED TRUE, Knots) 30 < and if{ 100 } els{ 0 }
</Code>
<Lag>50</Lag>
</Parameter>
</Animation>
</PartInfo>
I think I understand that: "I can manage canopy handle if my aircraft is on ground , if the engine it's not running and the airspeed it's not over 30 kt ... I don't understand the final with "if... else .." and I don't understand well the first part, " .... bool ) 100 * "
bool meaning to use 1 or 0 ?
Hope someone could help me to understand
THANKS
