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

How to detect ...?

Status
Not open for further replies.
Level 22
Joined
Feb 3, 2009
Messages
3,292
Hello, how can I detect when a my dummy unit misle is traveling into a cliff or hits a destroctible. When any of this happens the misle should explode. Either GUI or JASS, or even Both are appreciated. NOTE: The misle shoulden't explode if the misle goes down the cliff only if it goes up the cliff.
+rep for help.
 
Level 9
Joined
Sep 28, 2004
Messages
365
Play with the values of these 2 in your conditions:
  • (Terrain cliff level at (Center of (Playable map area))) Equal to 0
  • (Terrain pathing at (Center of (Playable map area)) of type Walkability is off) Equal to True
For some reason, Detecting walkability condition does not detect trees destructible which i have no idea why.
 
It just detects if the terrain itself would be pathable,
it says "terrain pathing" thats all.
If you want to check for "real" pathabiliy, there are scripts from
AntiArf, Vexorian or Rising Dust.
They work by using an item, moving it to a spot and checking if the
"wanted" coordinates are the one from the item.
The entire script is a bit more complicated, but it seems to be the best
way (I heard of a test with windwalking units, but it's slower).
 
Status
Not open for further replies.
Top