Hi! Currently I have spawn 3 enemies of the same type and using the same AI and Behaviour Tree. I am trying to make only those that are on screen to attack while others off screen remain passive. This is my current code.
However, it seems that all the enemies are linked, and only once all enemies are on screen will it begin to start attacking. If just one enemy is not on screen, the others (even though they are on screen) will not attack.
Any suggestions as to how I could make it so as long as the enemy itself is on screen, it is able to attack independent of whether others are on screen? Thanks!