So I'm trying to set up my attacking units to move to all areas of my map. Here's my current code:
Unit - Order (Picked unit) to ( Patrol targeting (Random point in (Entire map))) (Replace Existing Orders)
This works sufficiently for getting my units to populate a good portion of my map. However, as you may have guessed, the units congregate towards the center of my map, despite the fact that they spawn from the sides. If there is a better solution to wandering, I'd like to get units out towards the outskirts too. Otherwise I'll just have to send special units to patrol the outskirts, which isn't awful. Just wondering if anyone has tried something different.
Have you tried adding the 'Wander' Behavior to the Units per Trigger or in the Data Editor? All it does is making a Unit randomly move around. In the Data Editor under the 'Behavior' Tab, you can even specify how far away the Unit with this Behavior shall travel when it moves.
What Oatin said is an option. Have you considered making a "border" region around the map? Then order the units to move into that region randomly, instead of the entire map. That way they would pass through the center, but always end up in the outside of the map.
Not sure how it will play out in-game, but worth a try. I attached a picture to help illustrate my point- assume the blue area is your region, and the red lines are your unit's movement.
ATTACHMENTS
example2.jpg
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
The faster that your listed action is spammed, the more they will end up in the middle. This is because far away locations (for example in the side of the map) are overwritten by a new order to another location before it reached it.
So I'm trying to set up my attacking units to move to all areas of my map. Here's my current code:
Unit - Order (Picked unit) to ( Patrol targeting (Random point in (Entire map))) (Replace Existing Orders)
This works sufficiently for getting my units to populate a good portion of my map. However, as you may have guessed, the units congregate towards the center of my map, despite the fact that they spawn from the sides. If there is a better solution to wandering, I'd like to get units out towards the outskirts too. Otherwise I'll just have to send special units to patrol the outskirts, which isn't awful. Just wondering if anyone has tried something different.
@Naxxum: Go
Have you tried adding the 'Wander' Behavior to the Units per Trigger or in the Data Editor? All it does is making a Unit randomly move around. In the Data Editor under the 'Behavior' Tab, you can even specify how far away the Unit with this Behavior shall travel when it moves.
@Naxxum: Go
What Oatin said is an option. Have you considered making a "border" region around the map? Then order the units to move into that region randomly, instead of the entire map. That way they would pass through the center, but always end up in the outside of the map.
Not sure how it will play out in-game, but worth a try. I attached a picture to help illustrate my point- assume the blue area is your region, and the red lines are your unit's movement.
@Naxxum: Go
The faster that your listed action is spammed, the more they will end up in the middle. This is because far away locations (for example in the side of the map) are overwritten by a new order to another location before it reached it.