hold button to activate combo with titan two?

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

hold button to activate combo with titan two?

Postby frex15 » Sat Jul 13, 2019 4:36 am

i need help i cant find how setup this!!

hold button 2 sec to active combo_run
double tap buttun to active combo_run2

i have found script for this but it is not working on titan two and gpc
thx trying help me!
User avatar
frex15
Private First Class
Private First Class
 
Posts: 2
Joined: Sat Jul 13, 2019 4:19 am

Re: hold button to activate combo with titan two?

Postby Mad » Sat Jul 13, 2019 5:18 am

Code: Select all
main {
  // Hold for 2 seconds
  if (is_active(BUTTON_5) && time_active(BUTTON_5) == 2000) {
    combo_run(Example);
  }
 
  // Double tap
  if (event_active(BUTTON_5) && time_release(BUTTON_5) < 160) {
    combo_run(Example2);
  }
}
 
combo Example {
 
}
 
combo Example2 {
 
}
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 72 guests