A Bool Variable can store a true/false value.
Bool Variables are good at representing conditions with only 2 states: isAlive, hasKey, isEnemy, isFriend...
NOTE: Naming conventions for Bool Variables should imply the true/false nature of the value.
Examples
Found Me!
- This example uses a bool variable: isVisible
- Every frame, the Game Object Is Visible action tests if the GameObject is visible and stores the result in isVisible.
- The Bool Test action sends the FoundMe event as soon as isVisible is true.
- The FSM can then respond the FoundMe event as appropriate...