Revvin
29-12-2003, 04:59 PM
How many times have you thought of setting a button to eject in your sim but then taken it out worried that you'd hit it at the wrong moment? A better way would be to assign an ejection sequence to a number of buttons to generate a 'sequence' of presses that needed to be executed before the eject command was given. In the example below I've set the three buttons along the front of the Pro Throttle to execute the eject command once they are all pressed. This script has been used in my Warbirds III profile available for download in the 'Profiles' section of this forum if you'd like to see a working example.
//
script
SEQUENCE
テつ*WAIT( JS2.B2 AND JS2.B3 AND JS2.B4 ); テつ*// Wait for buttons 2,3 and 4 to get pressed on the throttle
テつ*DELAY( 10 ); テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* // Wait half a second
テつ*CMS.B1 = TRUE; テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* // Start Ejection Sequence
テつ*DELAY( 10 ); テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* // Wait half a second
テつ*CMS.B1 = FALSE; テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ*// Reset CMS B1 state
テつ*DELAY( 10 ); テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* // Wait half a second
ENDSEQUENCE
endScript
//
script
SEQUENCE
テつ*WAIT( JS2.B2 AND JS2.B3 AND JS2.B4 ); テつ*// Wait for buttons 2,3 and 4 to get pressed on the throttle
テつ*DELAY( 10 ); テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* // Wait half a second
テつ*CMS.B1 = TRUE; テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* // Start Ejection Sequence
テつ*DELAY( 10 ); テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* // Wait half a second
テつ*CMS.B1 = FALSE; テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ*// Reset CMS B1 state
テつ*DELAY( 10 ); テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* テつ* // Wait half a second
ENDSEQUENCE
endScript