I have an enemy tank that is ordered to move by triggers (it is important that it moving and not attacking, because it has a path it can't veer off from). Unfortunately, it won't auto-attack spectres or ghosts when they use Hold Fire. The second I use Weapons Free, the tank attacks as it should. I tried looking through the Hold Fire ability in the Data Editor, but couldn't find anything. I assume it has something to do with targeting or something, but I am lost.
And yes, the tank is modified to shoot while moving.
I also tried with an Armored Personnel Carrier, and the same thing happened. When I used any other units against it, it worked as it should, so it seems pretty likely that it is the Hold Fire ability that is the problem.
Hold Fire is a behavior toggle. Check the behavior flags, it probably has the passive or benign flag set, which makes the unit with the behavior ignored by weapon scanning and acquisition. Another alternative is to set the flag on the unit "Always a threat to attackers" which I believe forces the unit to always be considered in weapon scanning.
I can't make it work. I'm trying it with an APC, but I notice that its Weapon Scan Filter allow every type, including Benign and Passive.
I think the problem might also lay in the attacking unit, because it is asked to move, not attack. Units that are just standing around shoot the Spectre no matter if he's holding fire or not. So it's a combination of the ability and the "move while shooting" thing.
I know that would fix it, but then the tank would start going after you. Then again, that would actually be more believable and context-appropriate, so unless I figure this out, I'll do it your way and probably realize it was the best solution all along.
I have an enemy tank that is ordered to move by triggers (it is important that it moving and not attacking, because it has a path it can't veer off from). Unfortunately, it won't auto-attack spectres or ghosts when they use Hold Fire. The second I use Weapons Free, the tank attacks as it should. I tried looking through the Hold Fire ability in the Data Editor, but couldn't find anything. I assume it has something to do with targeting or something, but I am lost.
And yes, the tank is modified to shoot while moving.
I also tried with an Armored Personnel Carrier, and the same thing happened. When I used any other units against it, it worked as it should, so it seems pretty likely that it is the Hold Fire ability that is the problem.
Misread that. Please disregard.
Hold Fire is a behavior toggle. Check the behavior flags, it probably has the passive or benign flag set, which makes the unit with the behavior ignored by weapon scanning and acquisition. Another alternative is to set the flag on the unit "Always a threat to attackers" which I believe forces the unit to always be considered in weapon scanning.
I can't make it work. I'm trying it with an APC, but I notice that its Weapon Scan Filter allow every type, including Benign and Passive.
I think the problem might also lay in the attacking unit, because it is asked to move, not attack. Units that are just standing around shoot the Spectre no matter if he's holding fire or not. So it's a combination of the ability and the "move while shooting" thing.
instead move give them the attack order (on the point where it should move to). had the same problem but that fixed it for me
edit: I think if you use move in a trigger the unit doesnt attack even if it is attacked itself.
I know that would fix it, but then the tank would start going after you. Then again, that would actually be more believable and context-appropriate, so unless I figure this out, I'll do it your way and probably realize it was the best solution all along.
@EivindL: Go
I'm not sure but I think there is a flag called "chase" somewhere. Never used it, maybe it helps.