combo_restart - Restart a combo
combo_restart(<COMBO_IDENTIFIER>);
Restart the execution of the combo declared as <COMBO_IDENTIFIER> from its initial state.
This command has immediate effect on inactive or running combos. |
main { // If BUTTON_2 is pressed ... if(event_active(BUTTON_2)) { // ... restart the combo "Example" from its beginning. combo_restart(Example); } } combo Example { set_val(BUTTON_4, 100.0); wait(1000); set_val(BUTTON_8, 100.0); wait(1000); set_val(BUTTON_16, 100.0); wait(1000); }