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

[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