I am struggling to get an unspecified number of units (basically everyone in the region) in a particular region to move to and attack a specific unit of another player. If someone could post a screenshot of the triggers/actions/events required to accomplish this, that would be most helpful.
The action will look something like this:
"Unit - Order all Units in (Any units in AttackRegion owned by Any Player matching Excluded: Missile, Dead, Hidden with at most Any Amount) to (Attack [target]) (Replace Existing Orders)
Apparently that only sends the attacking units near those coordinates. If my attackee isn't there, they just stop. If they see him, they engage of course, but I want them to be able to follow my guy around regardless of his location and attack constantly. Any ideas on what is wrong or what else I could do?
An easy way of fixing this would be adding a periodic time event, putting it to 0.1 sec. This makes the units attack the target every 0.1 seconds, effectively making them constantly coming for the target.
An easy way of fixing this would be adding a periodic time event, putting it to 0.1 sec. This makes the units attack the target every 0.1 seconds, effectively making them constantly coming for the target.
Hmm...no, they are definitely only going to the coords no matter what I do. I did add the periodic timer, too.
I haven't tested to see if this will work, but instead of giving the location of the unit itself, have the zombies attack move:
Unit - Order (Triggering unit) to ( Attack targeting (Position of Marine2 (Unknown) [132.45, 121.61])) (Replace Existing Orders)
The Attack ability requires that your target is visible. If the target ceases to be visible while the attack is going on, they will just try to follow it to its last known position. This could explain why they aren't following the target.
Give the Zombies vision of the entire map and see if that helps.
Well, I made their sight = 100, but that didn't change anything. Is that what you mean by giving them vision of the entire map? If I leave, they go back to their position they were told to attack. I have not tried SansRegret's suggestion of attacking a point instead yet, though.
Edit: No luck with Target Point either. They just go to that point and sit there. Is it possible to make a point move and follow a unit or something like that?
Well, I made their sight = 100, but that didn't change anything. Is that what you mean by giving them vision of the entire map? If I leave, they go back to their position they were told to attack. I have not tried SansRegret's suggestion of attacking a point instead yet, though.
Edit: No luck with Target Point either. They just go to that point and sit there. Is it possible to make a point move and follow a unit or something like that?
There is a hard-coded limit to unit sight (it's somewhere around 30). If you give them more than that, they will end up with a much smaller range in game (somewhere around 8, I think). Basically, increasing the sight beyond the limit causes it to revert to a default value.
So if you set the Zombie's sight to 100, it still probably can't see the target (let's also not forget that even if they were in sight range, there's no guarantee that their site isn't being blocked by cliffs or other obstacles).
Try using the "Auto-Reveal Region" action, and apply it to the entire map.
I am struggling to get an unspecified number of units (basically everyone in the region) in a particular region to move to and attack a specific unit of another player. If someone could post a screenshot of the triggers/actions/events required to accomplish this, that would be most helpful.
Look for the "Issue Order to Unit Group Function"
The action will look something like this: "Unit - Order all Units in (Any units in AttackRegion owned by Any Player matching Excluded: Missile, Dead, Hidden with at most Any Amount) to (Attack [target]) (Replace Existing Orders)
http://img11.imageshack.us/i/poopxs.jpg/][IMG]http://img11.imageshack.us/img11/4466/poopxs.jpg
@MasterDinadan: Go
Thanks. How do I get the Attack option? Here is what mine looks like so far.
http://i40.tinypic.com/k9yob6.jpg
Double click the line that says "Order with No Target" and change it to "Order Targeting Unit" You should be able to select Attack then.
Thanks! This worked very well. Now I have slow moving zombies constantly attacking. :)
@Bonewalker: Go
Ok, it worked..up to a point. Here is my trigger:
Apparently that only sends the attacking units near those coordinates. If my attackee isn't there, they just stop. If they see him, they engage of course, but I want them to be able to follow my guy around regardless of his location and attack constantly. Any ideas on what is wrong or what else I could do?
An easy way of fixing this would be adding a periodic time event, putting it to 0.1 sec. This makes the units attack the target every 0.1 seconds, effectively making them constantly coming for the target.
Hmm...no, they are definitely only going to the coords no matter what I do. I did add the periodic timer, too.
I haven't tested to see if this will work, but instead of giving the location of the unit itself, have the zombies attack move: Unit - Order (Triggering unit) to ( Attack targeting (Position of Marine2 (Unknown) [132.45, 121.61])) (Replace Existing Orders)
You use Target Point instead of Target Unit.
The Attack ability requires that your target is visible. If the target ceases to be visible while the attack is going on, they will just try to follow it to its last known position. This could explain why they aren't following the target. Give the Zombies vision of the entire map and see if that helps.
@MasterDinadan: Go
Well, I made their sight = 100, but that didn't change anything. Is that what you mean by giving them vision of the entire map? If I leave, they go back to their position they were told to attack. I have not tried SansRegret's suggestion of attacking a point instead yet, though.
Edit: No luck with Target Point either. They just go to that point and sit there. Is it possible to make a point move and follow a unit or something like that?
There is a hard-coded limit to unit sight (it's somewhere around 30). If you give them more than that, they will end up with a much smaller range in game (somewhere around 8, I think). Basically, increasing the sight beyond the limit causes it to revert to a default value.
So if you set the Zombie's sight to 100, it still probably can't see the target (let's also not forget that even if they were in sight range, there's no guarantee that their site isn't being blocked by cliffs or other obstacles).
Try using the "Auto-Reveal Region" action, and apply it to the entire map.