GPC Toggle Between Two Scripts

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

GPC Toggle Between Two Scripts

Postby Reberbal » Mon Jul 15, 2019 12:51 am

What would be the best way to execute this?
Been waiting to make something like this for a while but can't find the best way, Any help or examples would be nice.

So lets say I have 2 combos made [ "Script 1 & Script 2" ]

Script 1 is always TRUE / ON and Script 2 is always FALSE / OFF till I press a button and Script 1 is FALSE and Script 2 is TRUE and vice versa

Do note I'm new to GPC.

I've been messing with it for the past few days and no luck of getting it to run.

if(get_val("BUTTON ONE"))
{
if(event_press("BUTTON TWO"))
}
combo Script 1
{
}
combo Script 2
{
}

This is my main example and I could use some help
I have more for testing but they don't work lol
User avatar
Reberbal
Private First Class
Private First Class
 
Posts: 2
Joined: Mon Jul 15, 2019 12:32 am

Re: GPC Toggle Between Two Scripts

Postby Reberbal » Mon Jul 15, 2019 12:55 am

The best way to explain would be cycle between options so like "No Scripts, Script 1, Script 2"
User avatar
Reberbal
Private First Class
Private First Class
 
Posts: 2
Joined: Mon Jul 15, 2019 12:32 am

Re: GPC Toggle Between Two Scripts

Postby Mad » Mon Jul 15, 2019 8:05 am

Sorted on Discord :joia:
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 87 guests