How to make enemies that do skill

When players attack enemies time 10 or more it’s will enemies will do skill like attack or create projectile and projectile are some damage to players

1 Like

You can add an attribute or variable on the enemy unit type that will be used for counting the number of times it has been attacked. Then, make an entity script on the unit to increase the attribute every time it is attacked, and have the script create the special projectile and reset the counter if the attribute has reached 0.

1 Like