Question by
Mondza · Jan 25, 2019 at 09:19 PM ·
enemy aienemy spawnenemy damageenemy-ai
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?
Comment
Answer by tormentoarmagedoom · Jan 26, 2019 at 03:37 PM
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.