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

call SetDestructableZ not working

Status
Not open for further replies.
Level 8
Joined
Sep 23, 2007
Messages
357
I am trying to use the following custom script:
Code:
call SetDestructableZ(bj_lastCreatedDestructable,-57,270,1,0)

When I try saving my map, Jass Helper gives me the following error:
Code:
Line 3341:Undeclared function  SetDestructableZ

Warcraft 3 also doesn't allow me to select this map when I have this code in it.

Is there any other way that I can get the height of a destructable/doodad that I have just created?
 
SetDestructableZ does not exist as a function. Wc3 doesn't have native support for destructable management in terms of position. You can use the mountain giant grab ability to move them (with some tinkering), but otherwise you have to just remove the destructable and recreate it (using CreateDestructableZ). In terms of retrieving Z values, just store the Z value into a global or into a hash. (for the hash, just save to the destructable's handle id)
 
Status
Not open for further replies.
Top