Zeiten
Resource contributor
- Messages
- 444
- Country

Howdy! 
Having some difficulties on a simple code.
When Left is pressed the handle goes out and activates
and Right activates
The system will then activate main or alternate apu fire suppression.
Thats not the problem, but the problem is that the only the LEFT mouseclick will work.
Anyone?
Having some difficulties on a simple code.
Code:
<PartInfo>
<Name>fe_firehandle_apu</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:fire apu firehandle, bool) 50 *
</Code>
<Lag>300</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+RightSingle+RightRelease+LeftRelease</MouseFlags>
<CallbackCode>
(M:Event) 'RightSingle' scmp 0 ==
if{ 1 (>L:fire apu firehandle, bool) 1 (>L:apu fire alternate activated, bool) }
els{ 0 (>L:fire apu firehandle, bool) } }
(M:Event) 'LeftSingle' scmp 0 ==
if{ 1 (>L:fire apu firehandle, bool) 1 (>L:apu fire main activated, bool) }
els{ 0 (>L:fire apu firehandle, bool) } }
</CallbackCode>
</MouseRect>
</PartInfo>
When Left is pressed the handle goes out and activates
Code:
(>L:apu fire main activated, bool)
Code:
(>L:apu fire alternate activated, bool)
The system will then activate main or alternate apu fire suppression.
Thats not the problem, but the problem is that the only the LEFT mouseclick will work.
Anyone?
