Rawles
31st January 2005, 02:56 AM
Hi You scripting pros i tried to modify or shal i say duplicate a function but on my joystick this time.I tried to just change the controller and the button.Hear is what i want to do i want the prop pitch to repeat while pressing the key command on my joystick button 16 and 14.I keep getting a script unreconized.
// CMS Script File
//
// Game Title: Forgotten Battles_Pacific Fighters
// Written By: Louis"Tuxedo"Rawles
// Date: 12-14-2004
//
// Controller buttons used,
%define incFovIn js2.b7
%define decFovIn js2.b5
// CMS buttons used,
%define incFovOut cms.b7
%define decFovOut cms.b5
script
// Increase field of view
sequence
while(incFovIn);
incFovOut=true;
delay(1);
incFovOut=false;
delay(1);
endSequence
//decrease field of view
sequence
while(decFovIn);
decFovOut=true;
delay(1);
decFovOut=false;
delay(1);
endSequence
// Eject
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
// Controller buttons used,
%define Prop_Pitch_Inc js1.b14
%define Prop_Pitch_Dec js1.b16
// CMS buttons used,
%define Prop_Pitch_Inc cms.b14
%define Prop_Pitch_Dec cms.b16
script
// Prop_Pitch_Inc
sequence
while(Prop_Pitch_Inc);
Prop_Pitch_Inc=true;
delay(10);
Prop_Pitch_Inc=false;
delay(10);
endSequence
//Prop_Pitch_Dec
sequence
while(Prop_Pitch_Dec);
Prop_Pitch_Dec=true;
delay(10);
Prop_Pitch_Dec=false;
delay(10);
endSequence
endScript
I have included a map and cms file in my attachment.
// CMS Script File
//
// Game Title: Forgotten Battles_Pacific Fighters
// Written By: Louis"Tuxedo"Rawles
// Date: 12-14-2004
//
// Controller buttons used,
%define incFovIn js2.b7
%define decFovIn js2.b5
// CMS buttons used,
%define incFovOut cms.b7
%define decFovOut cms.b5
script
// Increase field of view
sequence
while(incFovIn);
incFovOut=true;
delay(1);
incFovOut=false;
delay(1);
endSequence
//decrease field of view
sequence
while(decFovIn);
decFovOut=true;
delay(1);
decFovOut=false;
delay(1);
endSequence
// Eject
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
// Controller buttons used,
%define Prop_Pitch_Inc js1.b14
%define Prop_Pitch_Dec js1.b16
// CMS buttons used,
%define Prop_Pitch_Inc cms.b14
%define Prop_Pitch_Dec cms.b16
script
// Prop_Pitch_Inc
sequence
while(Prop_Pitch_Inc);
Prop_Pitch_Inc=true;
delay(10);
Prop_Pitch_Inc=false;
delay(10);
endSequence
//Prop_Pitch_Dec
sequence
while(Prop_Pitch_Dec);
Prop_Pitch_Dec=true;
delay(10);
Prop_Pitch_Dec=false;
delay(10);
endSequence
endScript
I have included a map and cms file in my attachment.