Float Switch
The Float Switch action sends events based on the value of a float variable.
| Parameter | Description |
|---|---|
| Float | The float variable to check. |
| Check | The numeric comparison used for each case. The first matching case is used. |
| Cases | A list of float cases and the event to send for the first case that passes the check. |
| Default Event | The event sent if no case matches. |
Example
Use this action to branch score or health ranges.
- Set Float to
Health. - Set Check to
Less Than Or Equal. - Add cases like
25 -> Critical,50 -> Low. - Set Default Event to
Normal.