Actions / Armed
Attack
Makes the selected creature use its normal close-range attack.
Current editor blockBlock ID 77Attack

What it does
Stops the creature long enough to attack, then plays its built-in attack behavior.
The wait before the next block depends on the creature attack speed.
Inputs
- No input. It uses the creature that owns this code.
Try it
If the cat is close, Attack. Put it inside an If block to make a trap that only swings when the player gets near.
Tips
- Use Attack Speed before Attack when the enemy should strike faster or slower.
Sources
Legacy pages reviewed: Attack
Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/ContentFonction.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/BlockManager.cs