waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
m (Some wiki formatting)
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| ofp
|game1= ofp
|version1=


|1.5
|game2= ofpe
|version2= 1.00
 
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00
 
|game5= arma2oa
|version5= 1.50
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50


|gr1= Waypoints
|gr1= Waypoints


| Returns [[Position]] of the given waypoint. <br><br>
|alias= [[getWPPos]]
{{Informative | This command is identical to [[getWPPos]]}}


| '''waypointPosition''' waypoint
|descr= Get provided waypoint's position.


|p1= waypoint: [[Array]] - format [[Waypoint]]
|s1= [[waypointPosition]] [groupOrUnit, index]


| [[Array]] - format [[PositionAGL]]
|p1= groupOrUnit: [[Group]] or [[Object]]
 
|x1= <code>_wPos = [[waypointPosition]] [_groupOne, 1];</code>


| [[waypoints]], [[setWaypointPosition]], [[waypointHousePosition]], [[setWPPos]]
|p2= index: [[Number]]


}}
|r1= [[Array]] - format [[Position#PositionAGL|PositionAGL]]


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>_wPos = waypointPosition [_groupOne, 1];</sqf>


[[Category:Scripting Commands|WAYPOINTPOSITION]]
|seealso= [[waypoints]] [[setWaypointPosition]] [[waypointHousePosition]] [[setWPPos]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands OFP 1.96|WAYPOINTPOSITION]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 18:08, 9 May 2022

Hover & click on the images for description

Description

Description:
Get provided waypoint's position.
Alias:
getWPPos
Groups:
Waypoints

Syntax

Syntax:
waypointPosition [groupOrUnit, index]
Parameters:
groupOrUnit: Group or Object
index: Number
Return Value:
Array - format PositionAGL

Examples

Example 1:
_wPos = waypointPosition [_groupOne, 1];

Additional Information

See also:
waypoints setWaypointPosition waypointHousePosition setWPPos

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