Rapid Fire Toggle Support
Posted: Thu Sep 12, 2019 5:14 pm
Hello All. I am trying to create a toggle key (Button_20) so that I can toggle on and off my rapid fire combo.
I am a new titan 2 user and have a very basic understanding of scripting. I would also like an LED indictor so I know if the rapid fire is on or off. Right now my rapid fire works fine but I need to hold down Button_20 for the rapid fire to stop. I anyone could help me create a toggle button (that doesn't need to be pressed while firing) with LED indicator I would appreciate it. Thank you
I am a new titan 2 user and have a very basic understanding of scripting. I would also like an LED indictor so I know if the rapid fire is on or off. Right now my rapid fire works fine but I need to hold down Button_20 for the rapid fire to stop. I anyone could help me create a toggle button (that doesn't need to be pressed while firing) with LED indicator I would appreciate it. Thank you
- Code: Select all
main {
if(get_val(BUTTON_5)) {
combo_run(Rapidfire);
}
if(get_val(BUTTON_20)) {
combo_stop(Rapidfire);
}
}
combo Rapidfire {
set_val(BUTTON_5, 100);
wait(12);
set_val(BUTTON_5, 0);
wait(12);
set_val(BUTTON_5, 0);
}