MagiCats
Wiki home
Actions / Basic

Out Loop

Stops the current loop.

Current editor blockBlock ID 30OutLoop
Out Loop code block in the MagiCats editor

What it does

Jumps the code to the end of the active loop and removes that loop from the stack.

Inputs

  • No input. Must be inside the loop it should stop.

Try it

If Player reaches door, Out Loop.

Tips

  • Out Loop only exits the loop it is inside.

Sources

Legacy pages reviewed: OutLoop

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