- Messages
- 36
- Country

Hi everyone!
I'm trying to build 3D test switch, but no luck...
Animated form 0 to 50 frames ("L:HidraulTest,bool", 0 - down switch, 1 - up switch). After compiling, and applying left mouse click, switch goes up and stays there. There is no action on LeftRelease event, any help ?
<part>
<name>gazela_hydraulic_test_switch</name>
<animation>
<parameter>
<code>
(L:HidraulTest,bool) 50 *
</code>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_text>Hydraulic Test Switch</tooltip_text>
<mouse_flags>LeftSingle+LeftRelease</mouse_flags>
<callback_code>
(M:Event) 'LeftSingle' scmp 0 == if{ (L:HidraulTest,bool) ! (>L:HidraulTest,bool) }
(M:Event) 'LeftRelease' scmp 0 == if{ (L:HidraulTest,bool) ! (>L:HidraulTest,bool) }
</callback_code>
</mouserect>
</part>
I'm trying to build 3D test switch, but no luck...
Animated form 0 to 50 frames ("L:HidraulTest,bool", 0 - down switch, 1 - up switch). After compiling, and applying left mouse click, switch goes up and stays there. There is no action on LeftRelease event, any help ?
<part>
<name>gazela_hydraulic_test_switch</name>
<animation>
<parameter>
<code>
(L:HidraulTest,bool) 50 *
</code>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_text>Hydraulic Test Switch</tooltip_text>
<mouse_flags>LeftSingle+LeftRelease</mouse_flags>
<callback_code>
(M:Event) 'LeftSingle' scmp 0 == if{ (L:HidraulTest,bool) ! (>L:HidraulTest,bool) }
(M:Event) 'LeftRelease' scmp 0 == if{ (L:HidraulTest,bool) ! (>L:HidraulTest,bool) }
</callback_code>
</mouserect>
</part>

