A Float Variable can store a floating point number.
Float Variables are good at representing properties with a continuous range such as speed, distance, height...
Examples
Decrease Health Over Time
- This example uses a float variable: health
- Every Second the Float Subtract action subtracts 5 from health.
- The Float Compare action sends a LowHealth event if health falls below 20.
- In the FSM a LowHealth event causes a transition to another state with different actions.
See Also: