MagiCats
Wiki home
Actions / Basic

Self Destruction

Destroys or disables the subject.

Current editor blockBlock ID 29SelfDestruction
Self Destruction code block in the MagiCats editor

What it does

Triggers destroy callbacks, then deals fatal damage if the subject has health. Otherwise it disables the object.

Inputs

  • No input.

Try it

Wait 3, Self Destruction. A timed explosive trap.

Tips

  • Use Wait before it to make the danger visible.

Sources

Legacy pages reviewed: SelfDestruction

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