Events#
Introduction#
The Events blocks in VEXcode AIR let you trigger code as soon as a project starts. Multiple start-event blocks can be added to a single project to launch different actions simultaneously, allowing several parts of a program to run in parallel right from the beginning.
Below is a list of available blocks:
when started — Executes the attached stack of blocks when the project starts.
when started#
The when started block runs its stack when the project begins. You can have multiple when started blocks to run multiple stacks of blocks at once.
The When started hat block.#
when started :: hat events
parameter |
description |
---|---|
This block has no parameters. |
Example
when started :: hat events
[Fly for 1 second when the project starts.]
take off to [500] [mm v] ▶
wait [1] seconds
land ▶