Can someone make this thanks

GPC2 script programming for Titan Two. Code examples, questions, requests.

Can someone make this thanks

Postby jasp90 » Fri Feb 26, 2021 11:10 am

Hi can someone make this hold LT for ever thanks
User avatar
jasp90
Command Sergeant Major
Command Sergeant Major
 
Posts: 125
Joined: Wed Nov 26, 2014 4:06 pm

Re: Can someone make this thanks

Postby jasp90 » Fri Feb 26, 2021 11:11 am

Down on dpad to Activate
User avatar
jasp90
Command Sergeant Major
Command Sergeant Major
 
Posts: 125
Joined: Wed Nov 26, 2014 4:06 pm

Re: Can someone make this thanks

Postby Scachi » Fri Feb 26, 2021 11:13 am

Code: Select all
bool holdLT = FALSE;
 
main {
    if (event_active(BUTTON_11)) holdLT = !holdLT;
 
    if (holdLT) set_val(BUTTON_8,100);
}
 
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 103 guests