Quote:
Originally Posted by inkspell4
Will that work even if the command takes more time to execute than the trigger is held for?
|
No.
if you use whenPressed (or whenActive), it will activate when the button is pressed and wont stop untill isFinished returns true
if you use whileHeld (or whileActive), it will activate when the button is pressed and wont stop untill isFinished returns true OR the button is released (if the button is released, the command is cancelled but the "end" method will not run and the "interrupted" method will. Keep that in mind when setting things like shooter jags)