-
Notifications
You must be signed in to change notification settings - Fork 0
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).
Description
Activates when the observed channel's value goes above the threshold.
Parameters
| Name | Type | desc |
|---|---|---|
threshold |
num | The threshold value |
Return types
Example
local trig = Trigger.observe(Context.currentCombo).goAbove(100)Description
Activates when the observed channel's value goes below the threshold.
Parameters
| Name | Type | desc |
|---|---|---|
threshold |
num | The threshold value |
Return types
Example
local trig = Trigger.observe(Context.currentCombo).goBelow(50)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
Example
local trig = Trigger.observe(Context.currentCombo).goAbove(100).dispatch(Channel.constant(1), 500, "so")Global
- Global Functions
- Scene
- Channel
- StringChannel
- TextChannel
- Trigger
- TriggerChannel
- Context
- Event
- Convert
Channels
Controllers
- Controller
- CanvasController
- ImageController
- SpriteController
- TextController
- CameraController
- TrackController
- NoteGroupController
Internal Controllers
Data types