customWaypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= ____________________________________________________________________________________________ | arma3dev |Game= |1.93|Game Version =(number surrounded by NO SPACE...")
 
m (Some wiki formatting)
 
(33 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|=
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |Game=
|game1= arma3
|version1= 1.92


|1.93|Game Version =(number surrounded by NO SPACES)
|gr1= Waypoints


|arg= |Multiplayer Arguments =("local" or "global")
|descr= Returns player's custom waypoint ({{Controls|LShift|LMB}}) position.


|eff= |Multiplayer Effects =("local" or "global")
|s1= [[customWaypointPosition]]


|exec= |Multiplayer Execution =("server" or empty)
|r1= [[Array]] in format [[Position]] as [x,y,0], or empty array [] if the waypoint does not exist
____________________________________________________________________________________________


| Returns player's custom waypoint position.(LShift + LMB) |Description=
|x1= <sqf>
____________________________________________________________________________________________
if (customWaypointPosition isNotEqualTo []) then
{
hint format ["You are %1m away from your custom waypoint.", round (player distance customWaypointPosition)];
};
</sqf>


| customWaypointPosition |Syntax=
|seealso= [[allMapMarkers]]
 
| [[Position]] |Return Value=
____________________________________________________________________________________________
 
|x1= <code>[[customWaypointPosition]]</code> |Example 1=
____________________________________________________________________________________________
 
|mp= - |Multiplayer Behaviour=
 
| |See Also=
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">'''[[User:User Name|User Name]]'''</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here -->
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:13, 7 March 2023

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:
Array in format 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 or on the Forums.
Only post proven facts here! Add Note