- Messages
- 10,163
- Country

Hey all,
I cant seem to get a switch to return to OFF position. You click it, its on, release and its off.
I have tried Mouse; Release, LeftRelease, and neither work. I have several versions of animation code for the switch (L:LJ24B GEAR ANUN TEST, bool) and nothing I do seems to work.
This one just seems to click with no animation. (Could be too fast, so its not moving??)
Code;
Variations;
Any idea's what I am doing wrong?
I cant seem to get a switch to return to OFF position. You click it, its on, release and its off.
I have tried Mouse; Release, LeftRelease, and neither work. I have several versions of animation code for the switch (L:LJ24B GEAR ANUN TEST, bool) and nothing I do seems to work.
This one just seems to click with no animation. (Could be too fast, so its not moving??)
Code;
Code:
<PartInfo>
<Name>learjet24_gear_test</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(L:LJ24B GEAR ANUN TEST, bool) 100 *</Code>
<Lag>950</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Gear Retract System Test</TooltipText>
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmi 0 == if{
(L:LJ24B GEAR ANUN TEST, bool) ! (>L:LJ24B GEAR ANUN TEST, bool)
1 (>L:XMLSND1,enum)
1 (>L:XMLSND157,enum)
}
(M:Event) 'LeftRelease' scmi 0 == if{
(L:LJ24B GEAR ANUN TEST, bool) ! (>L:LJ24B GEAR ANUN TEST, bool)
1 (>L:XMLSND1,enum)
}
</CallbackCode>
</MouseRect>
</PartInfo>
Variations;
Code:
(M:Event) 'LeftSingle' scmi 0 == if{
(L:LJ24B GEAR ANUN TEST, bool) ! (>L:LJ24B GEAR ANUN TEST, bool)
(M:Event) 'LeftRelease' scmi 0 == if{
(L:LJ24B GEAR ANUN TEST, bool) ! (>L:LJ24B GEAR ANUN TEST, bool)
(M:Event) 'LeftSingle' scmi 0 == if{
1 (>L:LJ24B GEAR ANUN TEST, bool) }
(M:Event) 'LeftRelease' scmi 0 == if{
0 (>L:LJ24B GEAR ANUN TEST, bool) }
(M:Event) 'LeftSingle' scmi 0 == if{
(>L:LJ24B GEAR ANUN TEST, bool) }
(M:Event) 'LeftRelease' scmi 0 == if{
(>L:LJ24B GEAR ANUN TEST, bool) }
(M:Event) 'LeftSingle' scmi 0 == if{
(>L:LJ24B GEAR ANUN TEST, bool) }
(M:Event) 'LeftRelease' scmi 0 == if{
0 (>L:LJ24B GEAR ANUN TEST, bool) }
Any idea's what I am doing wrong?




