customWaypointPosition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^= ]+)<\/tt>" to "{{hl|$1}}") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 6: | Line 6: | ||
|gr1= Waypoints | |gr1= Waypoints | ||
|descr= Returns player's custom waypoint (LShift + LMB) | |descr= Returns player's custom waypoint (LShift + LMB) position or an empty array {{hl|[]}} if no custom waypoint exists. | ||
|s1= [[customWaypointPosition]] | |s1= [[customWaypointPosition]] | ||
|r1= [[ | |r1= [[Array]] in format [[Position]] as [x,y,0], or empty array [] | ||
|x1= < | |x1= <sqf>if (customWaypointPosition isNotEqualTo []) then | ||
{ | |||
hint format ["You are %1m away from your custom waypoint.", round (player distance customWaypointPosition)]; | |||
};</sqf> | |||
|seealso= [[allMapMarkers]] | |seealso= [[allMapMarkers]] | ||
}} | }} |
Revision as of 19:08, 3 May 2022
Description
- Description:
- Returns player's custom waypoint (LShift + LMB) position or an empty array [] if no custom waypoint exists.
- Groups:
- Waypoints
Syntax
- Syntax:
- customWaypointPosition
- Return Value:
- Array in format Position as [x,y,0], or empty array []
Examples
- Example 1:
Additional Information
- See also:
- allMapMarkers
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note