- Messages
- 10,163
- Country

Hey all,
Trying to get my Right Click to function. Cannot figure out why its not working. I have re-written the click zone a few times.
This is a switch in the ModelDef (a 3d part), not a 2d gauge.
Any idea's? See a issue?
There is no 'click sound' (SND7) which does happen with left clicks. I am trying to stop the sound loop which plays when you first left click the switch. Its a long playing sound, so it only needs to play once. But getting it to cancel just isnt working. I have tried the 3 code (stop loop) and also the all sounds stop code. Nothing works on right click.
Trying to get my Right Click to function. Cannot figure out why its not working. I have re-written the click zone a few times.
This is a switch in the ModelDef (a 3d part), not a 2d gauge.
Any idea's? See a issue?
There is no 'click sound' (SND7) which does happen with left clicks. I am trying to stop the sound loop which plays when you first left click the switch. Its a long playing sound, so it only needs to play once. But getting it to cancel just isnt working. I have tried the 3 code (stop loop) and also the all sounds stop code. Nothing works on right click.
Code:
<PartInfo>
<Name>lhc_atc1_button</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(L:SUPER VIKING ATC1 BUTTON, bool) 100 *</Code>
<Lag>950</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>ATC Background Chatter One</TooltipText>
<CallbackCode>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
(M:Event) 'LeftSingle' scmp 0 ==
if{
2 (>L:XMLSND195,enum)
1 (>L:SUPER VIKING ATC1 BUTTON, bool)
1 (>L:XMLSND7,enum) }
(M:Event) 'RightSingle' scmp 0 ==
if{
0 (>L:SUPER VIKING ATC1 BUTTON, bool)
1 (>L:XMLStopSND,enum)
1 (>L:XMLSND7,enum) }
</CallbackCode>
</MouseRect>
</PartInfo>

At first, it looked all good until that "ah - ha" moment..