PDA

View Full Version : Command to turn on and off wep script?



palmtree
15th March 2010, 05:20 PM
Hi,
Please can someone help.

I used a script from the forum which allows the wep command in IL2 to be assigned to "kick in" when a value is reached on the z axis of the PT.
I would like to assign a button (button 4 on the CStick) to override this function and set the WEP to always on for use with German MW50 engines.

I have tried the following script, but I need to hold down button 4 at all times which is impractical.

// WEP
IF(JS1.B4)
THEN
CMS.B1=[JS2.A3<=255];
ELSE
CMS.B1=[JS2.A3<1];
ENDIF

Hope this makes sense as I just can't get my head around how to achieve this! :confused:

Thanks!

Pt

Bob Church
14th April 2010, 12:48 AM
Hi palmtree,

Look at the toggle function in CMS. It should do what you describe. One click turns it on, a second turns it off. If that won't do the trick, come on back and we'll think of something more elaborate.

Best regards,

- Bob

The StickWorks
http://www.stickworks.com

palmtree
19th April 2010, 07:39 PM
Thanks Bob!
Your suggestion works a treat!
Guess I was trying to be a little too clever!

Thanks again!

Pt