customWaypointPosition: Difference between revisions

From Bohemia Interactive Community
No edit summary
mNo edit summary
 
Line 10: Line 10:
|s1= [[customWaypointPosition]]
|s1= [[customWaypointPosition]]


|r1= [[Array]] format [[Position]] as [x,y,0], or empty array [] if the waypoint does not exist
|r1= [[Position]] as [x,y,0], or empty array [] if the waypoint does not exist


|x1= <sqf>
|x1= <sqf>

Latest revision as of 07:50, 2 January 2026

Hover & click on the images for description

Description

Description:
Returns player's custom waypoint (⇧ Shift + Left Mouse Button) position.
Groups:
Waypoints

Syntax

Syntax:
customWaypointPosition
Return Value:
Position as [x,y,0], or empty array [] if the waypoint does not exist

Examples

Example 1:
if (customWaypointPosition isNotEqualTo []) then { hint format ["You are %1m away from your custom waypoint.", round (player distance customWaypointPosition)]; };

Additional Information

See also:
allMapMarkers

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note