- Messages
- 92
- Country

Hi everyone.
I heave a question:
I created this Animation/button pressing code:
What I want it to do:
The (L:Mode,number) variable gives me 0, 1, or 2.
Depending on that I want to animate a switch - that part works fine.
When I click on that switch I want to have a <eventID> but different depending on (L:Mode,number) variable value:
if 0-> TOGGLE_TAIL_HOOK_HANDLE
if 1 -> AP_PANEL_HEADING_HOLD
if 2 -> TOGGLE_TAIL_HOOK_HANDLE
As you can see I tried to use case inside <eventid>, but it doesn't work, is there any other way to do that, or maybe I did something wrong.
I heave a question:
I created this Animation/button pressing code:
Code:
<Animation name="Vanship_thrust_direction_lever" guid="2290990d-e913-4751-8919-15e7e4dbb8b1" type="Sim" typeParam="AutoPlay" length="100" typeParam2="Vanship_thrust_direction_lever" />
<PartInfo>
<Name>Vanship_thrust_direction_lever</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(L:Mode,number) 2 - abs 50 *</Code>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>thrust direction lever mode - %((L:Mode,number))%!f!</TooltipText>
<MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
<EventID>TOGGLE_TAIL_HOOK_HANDLE AP_PANEL_HEADING_HOLD TOGGLE_TAIL_HOOK_HANDLE 3 (L:Mode,number) case</EventID>
</MouseRect>
</PartInfo>
What I want it to do:
The (L:Mode,number) variable gives me 0, 1, or 2.
Depending on that I want to animate a switch - that part works fine.
When I click on that switch I want to have a <eventID> but different depending on (L:Mode,number) variable value:
if 0-> TOGGLE_TAIL_HOOK_HANDLE
if 1 -> AP_PANEL_HEADING_HOLD
if 2 -> TOGGLE_TAIL_HOOK_HANDLE
As you can see I tried to use case inside <eventid>, but it doesn't work, is there any other way to do that, or maybe I did something wrong.
