Controls / Basic
Loop If
Repeats its inside blocks while a condition stays true.
Current editor blockBlock ID 35LoopIf

What it does
Checks the condition, runs the inside blocks when true, then checks again.
Inputs
- Condition block.
- Blocks snapped inside.
Try it
Loop If See Player: Follow Player, Attack.
Tips
- Use a Wait inside long loops so behavior has rhythm.
Sources
Legacy pages reviewed: LoopIf
Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/ContentFonction.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/BlockManager.cs