Need help bad if someone doesn’t mind something simple

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

Need help bad if someone doesn’t mind something simple

Postby usacougar23 » Tue Mar 31, 2020 3:07 am

Looking for a simple script for PS4 just need the 4 buttons cross triangle square and circle wanna be able to hold and release at a certain time but I wanna be able to adjust it I have no idea what I’m doing I had the old Titan one with the visual script
User avatar
usacougar23
Private First Class
Private First Class
 
Posts: 2
Joined: Thu Dec 17, 2015 12:02 am

Re: Need help bad if someone doesn’t mind something simple

Postby Mad » Tue Mar 31, 2020 3:39 am

Like this?
Code: Select all
#include <ps4.gph>
 
#define CROSS_HOLD_TIME    60
#define TRIANGLE_HOLD_TIME 60
#define SQUARE_HOLD_TIME   60
#define CIRCLE_HOLD_TIME   60
 
main {
    if(event_active(PS4_CROSS)) combo_run(cross);
    if(event_active(PS4_TRIANGLE)) combo_run(triangle);
    if(event_active(PS4_SQUARE)) combo_run(square);
    if(event_active(PS4_CIRCLE)) combo_run(circle);
}
 
combo cross {
    set_val(PS4_CROSS, 100);
    wait(CROSS_HOLD_TIME);
    set_val(PS4_CROSS, 0);
    wait(60);
}
 
combo triangle {
    set_val(PS4_TRIANGLE, 100);
    wait(TRIANGLE_HOLD_TIME);
    set_val(PS4_TRIANGLE, 0);
    wait(60);
}
 
combo square {
    set_val(PS4_SQUARE, 100);
    wait(SQUARE_HOLD_TIME);
    set_val(PS4_SQUARE, 0);
    wait(60);
}
 
combo circle {
    set_val(PS4_CIRCLE, 100);
    wait(CIRCLE_HOLD_TIME);
    set_val(PS4_CIRCLE, 0);
    wait(60);
}

Or did you mean hold all 4 buttons at the same time?
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 106 guests