Skid
29-02-2004, 06:12 AM
Hello
I'm trying to override my Fighterstick throttle wheel axis value temporarily while the mini-stick on the Pro Throttle's y-axis exceeds a certain value.
I have tried several constructs (IF, SEQUENCE, CASE) in a script but I can't seem to get anything to compile.
Here's some pseudocode of what I was trying to do:
----------------
A1 = JS1.A3 // store the FS throttle wheel's axis value
// if the ministick is pushed downwards
IF ( JS2.A2 > 160 ) THEN
// set the throttle wheel axis to full value
JS1.A3 = 255;
ELSE
// set the wheel axis back to what it was
JS1.A3 = A1;
ENDIF
------------------
As I mentioned, I tried using a SEQUENCE and a SELECT/CASE in place of the IF statement. I keep getting various vague assignment errors such as 'Expecting a ) but found >' and so on...
What would be the best approach to accomplish this?
Skid
I'm trying to override my Fighterstick throttle wheel axis value temporarily while the mini-stick on the Pro Throttle's y-axis exceeds a certain value.
I have tried several constructs (IF, SEQUENCE, CASE) in a script but I can't seem to get anything to compile.
Here's some pseudocode of what I was trying to do:
----------------
A1 = JS1.A3 // store the FS throttle wheel's axis value
// if the ministick is pushed downwards
IF ( JS2.A2 > 160 ) THEN
// set the throttle wheel axis to full value
JS1.A3 = 255;
ELSE
// set the wheel axis back to what it was
JS1.A3 = A1;
ENDIF
------------------
As I mentioned, I tried using a SEQUENCE and a SELECT/CASE in place of the IF statement. I keep getting various vague assignment errors such as 'Expecting a ) but found >' and so on...
What would be the best approach to accomplish this?
Skid