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

Waygate Function

Status
Not open for further replies.
Level 14
Joined
Jan 15, 2007
Messages
349
I have a question about the "Waygate Ability".
When I have a unit and add to this unit the "Waygate Ability" and also set ingame with "call WaygateSetDestination(unit,real,real)" the teleport-point of this unit, do I create then a "rect" at this position? (because in the options of the "Waygate Ability" you can set the "rect" size) And when the unit will be later removed will the "rect" which there is created be automaticly deleted? Also when I set a new destination point will the "rect" be moved or do it create a new "rect"?

"Waygate Ability"= 'Awrp'

Thanks for your time!

Edit: Rephrased
 
Last edited:
Level 40
Joined
Dec 14, 2005
Messages
10,532
Looked at it, the waygate uses Coordinates. It just grabs the center X/Y of the Rect defined at the start of the map (if you have one), then forgets about the rect altogether. Thus, you don't need a rect. You can get where it's pointing to via WaygateGetDestinationX and WaygateGetDestinationY.
 
Status
Not open for further replies.
Top