MagiCats
Wiki home
Numbers / Basic

Unit Number

Reads a number from a unit.

Current editor blockBlock ID 92UnitAttribInt
Unit Number code block in the MagiCats editor

What it does

Returns the chosen numeric value. Some values can also be changed by Set Variable in old code paths.

Inputs

  • Unit.
  • Number dropdown: life, angle, number of instances, X position, Y position, fire speed, or move speed.

Try it

If Player life < 2, open a shortcut.

Tips

  • Use with Compare Numbers.

Sources

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