>> REQUESTING SIMPLE SCRIPT <<

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

>> REQUESTING SIMPLE SCRIPT <<

Postby SG12user » Mon Jun 10, 2019 11:32 pm

To Start Things off, I need Someone To Make This Script for Me. Its should Be Roughly about 5-10min Max depending on how good you are (Whoevers reading & Willing to Help)

I want Someone to make this script on how its going to be described.


How i want it:

Hold X (CROSS) For 1.5 Seconds, Release For .5 Seconds, Hold X(CROSS) For 1.5 Seconds, Release For.5 Seconds ( Continuously/Forever)

To Perfom the action ( the toogle ) Should be Triangle

So When i press Triangle it performs the previously mentioned action infinitely until i press it again to deactivate it

( I tried My Best to explain, i dont even hold the slightest knowledge of GPC Scripting SO PLZZZZZZZ HELP ME)
User avatar
SG12user
Corporal
Corporal
 
Posts: 5
Joined: Sat Jan 12, 2019 7:08 pm

Re: >> REQUESTING SIMPLE SCRIPT <<

Postby Scachi » Tue Jun 11, 2019 8:00 am

Code: Select all
//Hold X (CROSS) For 1.5 Seconds, Release For .5 Seconds, Hold X(CROSS) For 1.5 Seconds, Release For.5 Seconds ( Continuously/Forever)
//To Perfom the action ( the toogle ) Should be Triangle
//So When i press Triangle it performs the previously mentioned action infinitely until i press it again to deactivate it
 
int bActive=0;
 
main {
    if (event_press(PS4_TRIANGLE))  {
        bActive = !bActive;
        if (!bActive) combo_stop(CrossPress);
    }
 
    if (bActive) combo_run(CrossPress);
}
 
combo CrossPress {
    set_val(PS4_CROSS,100);
    wait(1500);
    set_val(PS4_CROSS,0);
    wait(500);
}
 
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 87 guests

cron