Skip to content

ObserveTrigger

rech edited this page Jun 15, 2026 · 1 revision

Description

Trigger that activates based on the value of a ValueChannel.

Remarks

Created via Trigger.observe(channel).

Methods

goAbove(threshold)

Description

Activates when the observed channel's value goes above the threshold.

Parameters

Name Type desc
threshold num The threshold value

Return types

ObserveTrigger

Example

local trig = Trigger.observe(Context.currentCombo).goAbove(100)

goBelow(threshold)

Description

Activates when the observed channel's value goes below the threshold.

Parameters

Name Type desc
threshold num The threshold value

Return types

ObserveTrigger

Example

local trig = Trigger.observe(Context.currentCombo).goBelow(50)

dispatch(channel, duration, easing)

Description

Sets the value to send to the TriggerChannel bound to this trigger.

Parameters

Name Type desc
channel ValueChannel The value channel to dispatch
duration num The duration of the dispatch in ms
easing str The easing to use

Return types

ObserveTrigger

Example

local trig = Trigger.observe(Context.currentCombo).goAbove(100).dispatch(Channel.constant(1), 500, "so")

Clone this wiki locally