Hi collegues!
I have a problem. I dont know how to solve it easily without adding javascript code.
I dont't want to change a target type for a turret behaviour, but I have some specific condition.
Units and building have a helper - invisible dummy that plays target role for turrets. Turret attacks units and buildings. I have specific conditions - I dont what a turret attacks building if there is unit nearby.
How can I stop turret from attacking building if there is unit nearby? Unit and turret have the same dummy (target group), I woudn't like to give them different dummies (game logic will demand a lot of fixes).
PS - Yes I know I can manage it with target accquire conditions, but it declines optimization, as it requires "pick and for" conditions frequently.