How would you go about having a player or enemy turret target only it's target without the other turrets in a large group or more than one, would not fire on the same target, but would continue searching for another unlocked turret target.
When I move my tanks in groups of more than one it is common that more than one will reach the range at the same time with a shot from each turret on the same target. My enemies are on patrol and usually when my level begins they are grouped tight at some starts but not always due to the random settings. It just looks bad to have 3 or more rounds wasted on one target that dies with 1 hit. It also hurts the ammo count in the end.
I am guessing using an array that holds the UID of all turrets and locking one element by the first in range, having the other turrets continue their targeting etc ? I just haven't experimented with using arrays for such as this.
This is a large desktop level that uses Trees as cover and they are randomly placed every new level start. Depending on what the level gives you sometimes I have pretty large areas that does not have any cover. Moving my Tanks can be 1 to 14 so having some order in targeting would be helpful.
Any advice would be greatly appreciated Thanks..