hi all lost my fifa script for shooting can you help

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

hi all lost my fifa script for shooting can you help

Postby jasp90 » Thu Sep 23, 2021 3:10 pm

hi what it did was


if press RB
press RB and X together for a time i can change ( how much power i need longer press hit the shot harder )
wait ( a time a can change before i press X again)
press X

thanks for your help
User avatar
jasp90
Command Sergeant Major
Command Sergeant Major
 
Posts: 125
Joined: Wed Nov 26, 2014 4:06 pm

Re: hi all lost my fifa script for shooting can you help

Postby Mad » Thu Sep 23, 2021 10:25 pm

Code: Select all
#include <xb1.gph>
main {
    // if press RB
    if(event_active(XB1_RB)) combo_run(myCombo);
}
 
combo myCombo {
    set_val(XB1_RB, 100);
    set_val(XB1_X, 100);
    wait(60); // press RB and X together for a time i can change
    wait(60); // a time a can change before i press X again
    set_val(XB1_X, 100); // press X
    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 GPC2 Script Programming

Who is online

Users browsing this forum: midg3t2 and 72 guests