hi guys, i have a quesion

GPC1 script programming for Titan One. Code examples, questions, requests.

hi guys, i have a quesion

Postby hfhfghg » Sat Dec 15, 2018 4:04 am

For example I have a script where "FIRE = 4", "ADS = 3" etc., but I'd like to able to give the combination of 2 buttons a name as well, such as "NAME = 6 & 7".

Is this possible, if so how?
User avatar
hfhfghg
Private First Class
Private First Class
 
Posts: 2
Joined: Sat Dec 15, 2018 3:55 am

Re: hi guys, i have a quesion

Postby J2Kbr » Sat Dec 15, 2018 7:09 am

With the Titan One scripting this is not supported and you need construct conditionals checking both buttons manually, example:
Code: Select all
if(get_val(FIRE) && get_val(ADS)) {
 
}


However, with the Titan Two you could do that with preprocessor macros.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 82 guests