PDA

View Full Version : XBOX ONE How to stop the combo when the button is pressed again?



d33py_
11th April 18, 12:43
Topic. How do I do that? I don’t want the combo to be runned over and over again, just one time but whenever I repress the button it should stop

27321.john.3159
12th April 18, 04:05
Topic. How do I do that? I don’t want the combo to be runned over and over again, just one time but whenever I repress the button it should stop

Here's an example.

int combo_01;

main {

if(event_press(some_button))
combo_01=!combo_01;

if(combo_01)
combo_run(some_combo);

}

combo some_combo {
//combo here
combo_01=FALSE;//put this at end of combo to make run once and stop
}

d33py_
13th April 18, 08:31
Thank you so far, but I want it to stop if I repress the button, it doesnt stop. It gets executed at least once, even tho I press stop mid combo. How do i cancel that?

LEX LOST
13th April 18, 09:00
Thank you so far, but I want it to stop if I repress the button, it doesnt stop. It gets executed at least once, even tho I press stop mid combo. How do i cancel that?

here:



int onoff;

main {

if(event_press(start_button)) {
onoff=!onoff;
}
if(onoff) {
combo_run(some_combo);
}
}
combo some_combo {
// insert here
// your combo
}

27321.john.3159
14th April 18, 02:21
Thank you so far, but I want it to stop if I repress the button, it doesnt stop. It gets executed at least once, even tho I press stop mid combo. How do i cancel that?

Thank you LEX. Apologies, my script was incomplete. Maybe try this.

int combo_01;

main {//main start

if(event_press(some_button))
combo_01=!combo_01;

if(combo_01)
combo_run(some_combo);

if(!combo_01)
combo_stop(some_combo);

}//main end

combo some_combo {
//combo here
combo_01=FALSE;//put this at end of combo to make run once and stop
}