Facebook
From Rude Stork, 1 Year ago, written in C++.
Embed
Download Paste or View Raw
Hits: 184
  1. //Button Active + stop [ESP]
  2. void onevent_ControllerButtonRUp_pressed_0() {
  3. if (Controller.ButtonRUp.pressing()){
  4.   Morado++;
  5. }
  6. if (Variable == 1) {
  7.   Shooter.spin(reverse);
  8. }
  9. if (Variable == 2) {
  10.   Shooter.stop();
  11.   Morado = 0;
  12.  
  13. }
  14. if (Variable == 0) {
  15.   Shooter.stop();
  16. }
  17. }
  18. //U need to setup the variable in your main with the value "1"