Boolean
A property type for storing a simple true or false value.
The Boolean property type stores a simple true or false value. It is essential for creating toggles, flags, and binary states in your game.
- Default Value:
false
Common Use Cases
- Tracking if a door is locked or unlocked (
isDoorLocked). - Checking if a player has completed a puzzle (
hasCompletedPuzzle1). - Toggling a special ability on or off.
- Storing the state of a lever or button.
Operators (in Change Property action)
- Set: Directly sets the value to
trueorfalse. - Set True: A shortcut to set the value to
true. - Set False: A shortcut to set the value to
false. - Toggle: Flips the value from
truetofalse, or fromfalsetotrue.
Checks (in Property Condition)
- Equals: Checks if the value is equal to
trueorfalse. - Is True: Checks if the value is
true. - Is False: Checks if the value is
false.