Events#

Introduction#

An event is a starting signal for a set of blocks. 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 right from the beginning.

Below is a list of available blocks:

  • when started — Runs the attached stack of blocks when the project starts.

when started#

The when started hat block starts running the blocks below it when the project begins. Every project needs at least one when started block — without it, the blocks below it will not run. Multiple when started blocks can be used to run different sets of blocks at the same time.

The When started hat block.#
    when started

Parameters

Description

This block has no parameters.

Example

    when started
    [Fly for 1 second when the project starts.]
    take off to [500] [mm v] ▶
    wait [1] seconds
    land ▶