customWaypointPosition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 6: | Line 6: | ||
|gr1= Waypoints | |gr1= Waypoints | ||
|descr= Returns player's custom waypoint ( | |descr= Returns player's custom waypoint ({{Controls|LShift|LMB}}) position. | ||
|s1= [[customWaypointPosition]] | |s1= [[customWaypointPosition]] | ||
|r1= [[Array]] in format [[Position]] as [x,y,0], or empty array [] | |r1= [[Array]] in format [[Position]] as [x,y,0], or empty array [] if the waypoint does not exist | ||
|x1= <sqf>if (customWaypointPosition isNotEqualTo []) then | |x1= <sqf> | ||
if (customWaypointPosition isNotEqualTo []) then | |||
{ | { | ||
hint format ["You are %1m away from your custom waypoint.", round (player distance customWaypointPosition)]; | hint format ["You are %1m away from your custom waypoint.", round (player distance customWaypointPosition)]; | ||
};</sqf> | }; | ||
</sqf> | |||
|seealso= [[allMapMarkers]] | |seealso= [[allMapMarkers]] | ||
}} | }} |
Latest revision as of 11:13, 7 March 2023
Description
- Description:
- Returns player's custom waypoint (⇧ Shift + ) position.
- Groups:
- Waypoints
Syntax
- Syntax:
- customWaypointPosition
- Return Value:
- Array in format Position as [x,y,0], or empty array [] if the waypoint does not exist
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