seems pretty simple

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

seems pretty simple

Postby reece434 » Thu Jul 08, 2021 11:36 pm

Need help creating a script that press X (PS4) 2 different times like initially you press it and then it waits like 2.5 seconds and then it waits another 2.5 seconds and presses X once more. thats it, hope you guys can figure it out. Appreciate the help and the fast and reliability of you guys.
User avatar
reece434
Corporal
Corporal
 
Posts: 5
Joined: Sat Jan 23, 2016 4:06 am

Re: seems pretty simple

Postby Mad » Fri Jul 09, 2021 5:44 am

Code: Select all
main { if(event_press(PS4_CROSS)) combo_run(x); }
 
combo x {
    wait(2500);
    set_val(PS4_CROSS, 100);
    wait(60);   
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: seems pretty simple

Postby reece434 » Fri Jul 09, 2021 7:02 pm

this one almost works its hits the ball a max power but it doesn't hit the ball with accuracy so, when start the script by hitting X and starting the gauge, then the script hits it (1250 works best), but as the gauge is coming back down to gauge the accuracy it doesn't press X again. so we need it to, X wait 1250ms and Hit X and wait again 1250ms and press it again. sorry if I'm not explaining it clearly. thanks for the fast reply and I'm hoping you could help me once more.
User avatar
reece434
Corporal
Corporal
 
Posts: 5
Joined: Sat Jan 23, 2016 4:06 am

Re: seems pretty simple

Postby Mad » Fri Jul 09, 2021 9:53 pm

Code: Select all
main { if(event_press(PS4_CROSS)) combo_run(x); }
 
combo x {
    wait(1250);
    set_val(PS4_CROSS, 100);
    wait(60);
    wait(1250);
    set_val(PS4_CROSS, 100);
    wait(60);
}
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 74 guests