command to repeat script?
4 posts
• Page 1 of 1
command to repeat script?
does anybody know the repeat combo command so when I activate my combo it will repeat forever until I Turn the Titan 1 off. I'm trying to avoid using gameRec option. Thanks in advance
-
Rapture - Sergeant First Class
- Posts: 19
- Joined: Sat Feb 04, 2017 8:57 pm
Re: command to repeat script?
Something like that should do the trick, you can toggle on off with L3/LT, or change the name to the button you want:
- Code: Select all
int onoff = FALSE;
main {
if(event_press(PS4_L3)) {
onoff = !onoff;
if(!onoff) combo_run(RumbleFeedback);
}
if(onoff) {
combo_run(YourCombo );
}
}
combo YourCombo {
// your combo content here
}
combo RumbleFeedback {
set_rumble(RUMBLE_A, 100);
wait(150);
reset_rumble();
}
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: command to repeat script?
Once you activate this combo it will repeat indefinitely, like you requested.Rapture wrote:does anybody know the repeat combo command so when I activate my combo it will repeat forever until I Turn the Titan 1 off
- Code: Select all
combo combo1 {
...
/* Repeat combo1 */
combo_restart(combo1);
wait(10);
}
-
Sillyasskid - Captain
- Posts: 574
- Joined: Sat May 14, 2016 3:07 am
Re: command to repeat script?
THANKS A LOT!
-
Rapture - Sergeant First Class
- Posts: 19
- Joined: Sat Feb 04, 2017 8:57 pm
4 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 73 guests