• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Strange diagonal unit movement

Status
Not open for further replies.
Level 3
Joined
Nov 12, 2018
Messages
43
In my map, I order units from point A to point B. Each unit has their own line on a path. I want to prevent my units from hugging each other on the way. This system works great, as long as they are running horizontaly or verticaly on the map.

As soon as they start running on a diagonal path, they seem to follow "pre-defined" lines, resulting in many units bumping into each other. But my trigger should work on diagonal lines too.

But they "remember" their lines, if they run on an horizonatl/vertical path again.

How can I stop units to run on those "pre-defined" lines, when running diagonaly?


edit: The problem is, that I'm ordering each unit by themself. By ordering entire groups of units (up to 12), they move in some sort of formation - ignoring those pre-defined lines for single units.
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
I assume the waypoint region is square? It might be due to all the units being ordered when they pass the one edge instead of when they are exactly diagonal to their intended destination.

The behaviour observed is likely hard coded by the path finder. Sharing paths with multiple units is a common thing to improve path finder performance (find route once, recycle for many units).
 
Status
Not open for further replies.
Top