Hm, that looks like it could work, but a line could mean that the tiniest movement left or right would make the target get hit, and i can just imagine people hating on the game if they get hit while behind cover.
Though i might change it to attack ground, that would make it more flexible.
How would i go about making a narrow rectangle region from the attacker to the target?
Edit: Do you think it would run fast enough for the projectile to to redirect? and not fire one first then fire again at the destructible/unit in the way.
Plus how do you detect doodads?
Edit2: Just realised that this wouldn't work, too much, margin for error, like the player orders him to attack someone else but the trigger forces him not to... etc, it would be lame.
I think ill make it so all the units have really high armor so they cant get hurt, and then apply damage through triggers...
Thanks though, the trigger you used to detect the destructible, and the one for the unit helped, I'll use that