• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

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