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

Unit Point to Point moving problem

Status
Not open for further replies.
Level 3
Joined
Mar 22, 2009
Messages
35
I have a map where a unit is supposed to spawn and then walk to several areas and kill every enemy unit in his way to reach his goal. I use regions as points and then triggers with Event: unit enters region, Action: Attack-move to the next region. It works perfectly except for that if the path the blocked by a non attacking building like for example walls then he just stops in front of the building and wont destroy it. Please help :cry:
 
Level 3
Joined
Mar 22, 2009
Messages
35
The thing is that there are no buildings blocking the way from when the map starts, they are build by player and could be build anywhere on the path.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Create a trigger that spawns an invisible unit every X seconds (a very small model or something), give the unit wind walk (so he walks through units, but not through buildings).
Then, if that unit stops, there is something blocking his path: just pick the towers in front of him (you can also use "in range") and sell/destroy them.
 
Status
Not open for further replies.
Top