t2:combo_stop

combo_stop


combo_stop - Stop a combo

Description


combo_stop(<COMBO_IDENTIFIER>);

Stop the execution of the combo declared as <COMBO_IDENTIFIER> and sets the combo state to its initial state.

Parameters


  • <COMBO_IDENTIFIER>: Identifier of the combo to stop.

Examples


Example #1 combo_stop() example

main {
    // While BUTTON_2 is held-down ...
    if(get_val(BUTTON_2)) {
        // ... keep the combo "Example" running in an endless loop.
        combo_run(Example);
    } else if(Example) { // Else if combo "Example" is running ...
        // ... stop it immediately.
        combo_stop(Example);
    }
}
 
combo Example {
    set_val(BUTTON_4, 100.0);
    wait(50);
    set_val(BUTTON_8, 100.0);
    wait(50);
    set_val(BUTTON_16, 100.0);
    wait(50);
}

See Also

t2/combo_stop.txt · Last modified: 2016/11/18 04:06 by J2Kbr