MagiCats
Wiki home
Conditions / Basic

Unit State

Reads a true-or-false state from a unit.

Current editor blockBlock ID 93UnitAttribBool
Unit State code block in the MagiCats editor

What it does

Returns the chosen state from physics or toggleable behavior.

Inputs

  • Unit.
  • State dropdown: grounded, not grounded, opened, closed, enabled, or disabled.

Try it

If Door closed, Show hint.

Tips

  • Use this when the level should react to an object state.

Sources

Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/ContentFonction.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/BlockManager.cs