GetOrderPointLoc

comment

Returns a new location for the current point order (anywhere on map terrain).

Returns 0,0,0 for other event types. If you want to get the position of the target for a target order, get that target object first.

note

Returned location must be removed with RemoveLocation to avoid leaks.

note

When this is used improperly, it returns a location with (0,0,0) which is different from a manually created location at (x=0,y=0) that will return the map's height via GetLocationZ.

note

See: GetOrderPointX, GetOrderPointY if you want to avoid object creation or don't need the Z coordinate.

event
EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER
event
EVENT_UNIT_ISSUED_POINT_ORDER
patch

1.00

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
location
Source code
constant native GetOrderPointLoc takes nothing returns location