runWhile

fun runWhile(condition: BooleanSupplier, vararg commandsToRun: Command)

Run a group of commands at the same time. Ends once the condition is no longer met.

Parameters

condition

The execution condition

commandsToRun

The commands to run


fun runWhile(condition: BooleanSupplier, sequence: SequentialCommandBuilder.() -> Unit)

Run a command sequence that ends once the condition is no longer met.

Parameters

condition

The execution condition

sequence

The sequence to run