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!
found this SetDestructableOccluderHeight but dont seem to work
tried this also CreateDestructableZ but it creates them far up in the air even if u set the z 0.0001. any1 know how this works?
also btw i want the "pillars" that im trying to change height on, to go thru the ground (as when u place a doodad in the editor and holding down ctrl+page down)
Got no idea what your doing to get a destructable in the air at 0.00001 height. Care you post a demo map of it?
A height of zero doesn't mean the ground of the map. Maps also have a cliff height. Meaning if you made a destructable at zero height on a map with 1 cliff height it would be about 128 points underground.
Take a look at my map to see how i tested it (seems zero cliff height is really -256 points)
The best way to change destructables in-game is to find the height of the ground then add extra height to the destructable. You'll need to destroy and create a new destructable each time. Also, you'll need to somehow store the destructables height beforehand (you cannot use triggers to get its height). As for choosing which destructable to move you'll need to find a alternative way. Maybe using dummy units for each destructable to click&select them or using a worker with the harvest ability and detecting the target.
Edit: I believe SetDestructableOccluderHeight() has to do with how high a flying unit has to be before it can see over the destructable (like a tree).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.