waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
(47 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1=


|1.5|= Game version
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


| Get [[Waypoint]]'s  [[Position]]. <br>'''Note''': This function is identical to [[getWPPos]]. |= Description
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| [[Array]] <nowiki>=</nowiki> '''waypointPosition''' waypoint |= Syntax
|game4= arma2
|version4= 1.00


|p1= waypoint: [[Array]] - format [[Waypoint]] |= Parameter 1
|game5= arma2oa
|version5= 1.50


| [[Array]] - format [[Position]] |= Return value
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00
 
|x1= <pre>_wPos = waypointPosition [_groupOne, 1]</pre> |= Example 1
____________________________________________________________________________________________


| |= See also
|game7= arma3
|version7= 0.50


}}
|gr1= Waypoints
 
|alias= [[getWPPos]]
 
|descr= Get provided waypoint's position.
 
|s1= [[waypointPosition]] [groupOrUnit, index]
 
|p1= groupOrUnit: [[Group]] or [[Object]]


<h3 style="display:none">Notes</h3>
|p2= index: [[Number]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Array]] - format [[Position#PositionAGL|PositionAGL]]
</dl>


<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.96|WAYPOINTPOSITION]]
}}
[[Category:Scripting Commands ArmA|WAYPOINTPOSITION]]
[[Category:Command_Group:_Waypoints|{{uc:{{PAGENAME}}}}]]

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