Action

Description

Executed at a specific point of a trigger’s lifecycle.

Action type is determined by the presence of required properties.

Properties

Property

Type

Description

Default

on

enum(begin, end, cancel, update, end_cancel)

At which point of the trigger’s lifecycle the action should be executed.

end

conditions

Condition or list(Condition)

Same as Trigger.conditions, but only for this action.

interval

float or string

How often should an on: update action execute. Can be negative for bidirectional motion triggers.

0 - Execute exactly once per event

'+' - Execute exactly once per event with positive delta

'-' - Execute exactly once per event with negative delta

number - Execute when total delta is positive and is equal to or larger than number

-number - Execute when total delta is negative and is equal to or smaller than number

0

limit

uint

How many times the action can be executed during a trigger.

0 - no limit

0

threshold

float (min) or range(float) (min and max)

Same as Trigger.threshold, but only for this action.

on: begin actions cannot have this property.