i did a spawn script but when 2 identical enemies spawn and one attacks first, the other stops and starts the attacking animation too

hi im doing a wave kinda game and when 2 equal enemies are spawned and the first one starts attacking the other starts the attacking animation too but i only take damage from 1 of them,i tried everything but it seems like i have to get 1 script per enemy spawned can anyone help me?

1 Answer

1

Good day.

Can you show the scripts of the attack behaviour? This can be caused because you have some static variable in the unit scripts… Each unit needs ints own variables, they can not be static.

Bye.