Float Threshold Event
Sends an event when a float reaches one or more threshold values.
This action is edge-triggered, so it sends the event only when the condition becomes true. If the condition stays true, it does not repeatedly send events.
Default update mode: On Event Update.
Parameters
| Parameter | Description |
|---|---|
| Float | The float variable to watch. |
| Check | Comparison operator (Equals, Greater Than, Greater Than Or Equal, Less Than, Less Than Or Equal). |
| Thresholds | Float list of threshold values to test. |
| Send Event | Event sent when a threshold is reached. |
How It Triggers
For each value change, the action compares the current value and previous value. It sends Send Event when the condition is true now, but was false before.
Example
Detect when health drops to dangerous levels.
- Set Float to
PlayerHealth. - Set Check to
Less Than Or Equal. - Add
25to Thresholds. - Set Send Event to
LowHealth.