• 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.

[Trigger] Disable path finding ?

Status
Not open for further replies.
Level 4
Joined
Sep 6, 2012
Messages
88
Hi guys !

As you all know, units in Warcraft 3 always automatically take detours if they bump into obstacles such as trees or units. I want to ask, is there any way to disable this path-finding feature so that units will run straight into obstacles even if it means they will be stuck ?

Thank you very much !
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
You would have to remove the pathing of either the obstacles or the unit and then stop the unit manually. Or customize movement à la when unit is ordered to a location/target, it will be interrupted and sent in front of the obstacle instead or periodically moved via SetUnitX/Y.
 
Level 4
Joined
Sep 6, 2012
Messages
88
Hi,

I tried to remove units' pathing by turning their collision to Off, however the problem still remains.

I'm currently ordering units to move using Issue Order - Move to. I tried using Move Instantly but the walking animations just look funny.

I wonder if there is any easy solution that can be done via GUI. I don't know much about custom scripts :).

Thank you very much !
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
The GUI Unit - Move (Instantly) interrupts any actions and animation. Set the unit to flying and I guess periodically check the terrain pathing beneath its feet. If it's blocked, do Move (Instantly) on the current location.

edit: Terrain pathing won't work as it's really only the pathing of the terrain, not destructables or units. You may check with placing an item there and see if it does not get relocated.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Loop from the position of the target towards the target point of the order increasing x/y by 10; if you find an obstacle on that x/y, then order your unit to move to that point wich is right in front of the obstacle in a straight line from the position of the unit.
 
Level 4
Joined
Sep 6, 2012
Messages
88
Can anyone provide me a working solution to this problem i.e an example map ? I understand the explanations but having problems figuring out how to implement them.

@Dr Super Good: Yup, it's useful and all I want is to disable it temporarily to serve specific purposes, not to remove it completely. I think you are misunderstanding my point, but it's okay. Thank you !
 
Status
Not open for further replies.
Top