Gets a unit's current waypoint.
x, z = Inspect.Map.Waypoint.Get(unit) | |||
Parameter | Type | Datatype | Description |
---|---|---|---|
unit | parameter | unit | A unit, in either unit ID or unit specifier format. |
x | result | number | The x coordinate of the waypoint. |
z | result | number | The z coordinate of the waypoint. |