Zeiten
Resource contributor
- Messages
- 444
- Country

The XML stuff is hard to learn..
Thought I finally had figured it, but then reality kicked me in the ***.
Trying to code the apu so that a master switch needs to be turned on in order for the apu start button to work.
What this code "tells me" is that when left click;
if the value of (L:fe apu on, enum) and (L:fe apu master on, bool) is 1 the (K:APU_STARTER) kicks in, and if the value was 0 for the (L:fe apu master on, bool) the (L:fe apu on, enum) switch would return to 0 and the apu will not start.
But whats happening is that when I press Apu on the frigging master switch also moves (and of course the apu starts).
It's seems that the sim and I have some disagreements, but will let the sim have the benefits of doubt.
Thought I finally had figured it, but then reality kicked me in the ***.
Trying to code the apu so that a master switch needs to be turned on in order for the apu start button to work.
What this code "tells me" is that when left click;
if the value of (L:fe apu on, enum) and (L:fe apu master on, bool) is 1 the (K:APU_STARTER) kicks in, and if the value was 0 for the (L:fe apu master on, bool) the (L:fe apu on, enum) switch would return to 0 and the apu will not start.
But whats happening is that when I press Apu on the frigging master switch also moves (and of course the apu starts).
It's seems that the sim and I have some disagreements, but will let the sim have the benefits of doubt.
Code:
<PartInfo>
<Name>fe_apu_on</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:fe apu on, enum) 50 *
</Code>
<Lag>300</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Start Apu</TooltipText>
<MouseFlags>LeftSingle+LeftRelease+LeftDrag</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
1 (>L:fe apu on, enum) 1 (>L:fe apu master on,bool)
if{ (>K:APU_STARTER) } els{ (>L:fe apu on, enum) }
(M:Event) 'LeftRelease' scmp 0 ==
if{ 0 (>L:fe apu on, enum) }
(M:Event) 'LeftDrag' scmp 0 ==
if{ 0 (>L:fe apu on, enum) }
</CallbackCode>
</MouseRect>
</PartInfo>

