MagiCats
Wiki home
Actions / Basic

Play Sound

Plays a sound effect from the sound block list.

Current editor blockBlock ID 19PlaySound
Play Sound code block in the MagiCats editor

What it does

Finds or creates an audio source for the subject and plays the selected clip.

Inputs

  • Sound block.

Try it

Open Door, Play Sound Boing.

Tips

  • Small sounds make traps easier for players to understand.

Sources

Legacy pages reviewed: PlaySound

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