hold button to activate combo with titan two?

GPC script programming for Titan Two device. Code examples, how to, questions, requests.

Moderators: The_Rabid_Taco, pablosscripts, bonefisher

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
Private
 
Posts: 1
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 || Discord
Mad
Command Sergeant Major
Command Sergeant Major
 
Posts: 164
Joined: Wed May 22, 2019 5:39 am


Return to GPC Script Programming (Titan Two)

Who is online

Users browsing this forum: Squidward and 10 guests