I'm making a wave-based tower defense game.
Enemy units spawn at the right of the map and are ordered to Attack-Move toward a region at the left.
My goal is for them to attack any enemy they encounter along their path while moving toward their destination.
The problem is that whenever a defensive building attacks one of these units, the unit immediately abandons its current target and rushes toward the building that attacked it. It seems there's a built-in retaliation/aggro system that gives priority to the source of incoming damage.
Is there a way to disable or ignore this retaliation behavior so units simply attack whatever is directly in their path instead of chasing whatever attacked them? I'd like to avoid making defensive structures invulnerable because those defensive structures should also be attacked when they are in the path.
Thanks in advance
Enemy units spawn at the right of the map and are ordered to Attack-Move toward a region at the left.
My goal is for them to attack any enemy they encounter along their path while moving toward their destination.
The problem is that whenever a defensive building attacks one of these units, the unit immediately abandons its current target and rushes toward the building that attacked it. It seems there's a built-in retaliation/aggro system that gives priority to the source of incoming damage.
Is there a way to disable or ignore this retaliation behavior so units simply attack whatever is directly in their path instead of chasing whatever attacked them? I'd like to avoid making defensive structures invulnerable because those defensive structures should also be attacked when they are in the path.
Thanks in advance
