• 🏆 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!

[Solved] How to get the target point X and Y of a unit's current order in JASS?

Status
Not open for further replies.
Level 8
Joined
Jan 28, 2016
Messages
486
You can use the following natives to get the X and Y coordinates of a point order and then save them under the unit. When you the values later on, load them into temporary variables, issue the new order and then save and re-order the old coordinates.
JASS:
constant native GetOrderPointX takes nothing returns real
constant native GetOrderPointY takes nothing returns real
 
Level 3
Joined
Nov 18, 2013
Messages
21
You can use the following natives to get the X and Y coordinates of a point order and then save them under the unit. When you the values later on, load them into temporary variables, issue the new order and then save and re-order the old coordinates.
JASS:
constant native GetOrderPointX takes nothing returns real
constant native GetOrderPointY takes nothing returns real
Thanks!
 
Status
Not open for further replies.
Top