Multiple actors locking on another actor
In my scene, I am creating 4 turrets out of the same actor. Their job is to shoot down another actor which will be spawn the multiple times.
My question is if I create enemyx, enemyy..and set a rule where the turret will lock on and fire when an enemy is in range by changing the enemy 's x and y, is that a good solution?
I can see a problem if two enemy get in the turrets range at the same time
My question is if I create enemyx, enemyy..and set a rule where the turret will lock on and fire when an enemy is in range by changing the enemy 's x and y, is that a good solution?
I can see a problem if two enemy get in the turrets range at the same time
Answers