how do i run combo while ly and B button is pressed

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

how do i run combo while ly and B button is pressed

Postby bigKrill878 » Thu Dec 30, 2021 2:33 pm

I understand how to run a combo with one button, but i need this combo to be ran when my left stick is pressed forward and when pressing button 15.
f3767adf6299626fd14b4fb4bbb53f16.png
f3767adf6299626fd14b4fb4bbb53f16.png (5.23 KiB) Viewed 685 times
User avatar
bigKrill878
Sergeant
Sergeant
 
Posts: 6
Joined: Mon Oct 04, 2021 5:46 pm

Re: how do i run combo while ly and B button is pressed

Postby Mad » Thu Dec 30, 2021 8:55 pm

Code: Select all
main {
    if(get_val(XB1_LY) <= -60 && get_val(XB1_B)) {
 
    }
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: how do i run combo while ly and B button is pressed

Postby bigKrill878 » Thu Dec 30, 2021 10:40 pm

thank you, now how would i convert this to a T2 script.when i try changing the buttons it just gives me the errors
User avatar
bigKrill878
Sergeant
Sergeant
 
Posts: 6
Joined: Mon Oct 04, 2021 5:46 pm

Re: how do i run combo while ly and B button is pressed

Postby Mad » Thu Dec 30, 2021 10:44 pm

Code: Select all
#include <xb1.gph>
main {
    if(get_actual(XB1_LY) <= -60f && is_active(XB1_B)) {
 
    }
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: how do i run combo while ly and B button is pressed

Postby bigKrill878 » Sat Jan 01, 2022 3:19 am

thank you much Mad happy new year!
User avatar
bigKrill878
Sergeant
Sergeant
 
Posts: 6
Joined: Mon Oct 04, 2021 5:46 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 61 guests