Make unit stay at "Attack-Move" point

Status
Not open for further replies.
Hello guys,

When i create a unit at a point A and order it to attack-move to point B, i want it to stay at point B permanently. (Usually if it doesn't find any enemy units or the battle is over it will return to point A which is its creation point).

  • Actions
    • Unit - Create 1 Gnoll for Player 12 (Brown) at (Center of Region A <gen>) facing Default building facing degrees
    • Unit - Order (Last created unit) to Attack-Move To (Center of Center of Region B <gen>)
Thank you. :)
 

ISL

ISL

Level 14
Joined
Nov 7, 2014
Messages
242
Usually if it doesn't find any enemy units or the battle is over it will return to point A which is its creation point
Wait, what? It shouldn't happen

Correct me if I'm wrong, but the units usually tend to return to the point of their last received order, or where they've last been stunned or interrupted in any other way, so it should return to the point which you've targeted with the attack-move order.
You should check for other triggers which could interact with the unitt

If the problem still remains, try creating a trigger that would force the unit to the point where it needs to be in case it's not already there and if it's inactive and not attacking anything.

Well, I hope it helps
 
Level 9
Joined
Apr 23, 2011
Messages
527
Wait, what? It shouldn't happen

Correct me if I'm wrong, but the units usually tend to return to the point of their last received order, or where they've last been stunned or interrupted in any other way, so it should return to the point which you've targeted with the attack-move order.

Sadly, no. They return to their original point after doing their thing. It's honestly very weird.

My solution would be to periodically reorder the units to attack move the point, although if there are many units being ordered they might freeze up for a few seconds when the trigger fires as the game orders the units.
 
Level 14
Joined
Jan 16, 2009
Messages
716
The solution is to change the unit's owner from neutral hostile to any player slot on arrival. Then change it back to neutral hostile. This is the only way to update the guard position of a neutral hostile unit.

If the units is not owned by neutral hostile you can use the guard position natives.
 
Last edited:
Level 15
Joined
Aug 14, 2007
Messages
936
From my rich experience with the world editor for warcraft 3, it seems that the AI for the player 12 slot is taking over control. If you remove guard position, the AI will still create a new guard position that is nearby the town hall building. Anyway the only way to solve this ...

Simply just remove
AI from the player setting, this will fix everything but in turn they will not issue auto spell cast for Hero and also not build things on their own if it might affect your map.
 
Last edited:
Status
Not open for further replies.
Top