waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(63 intermediate revisions by 16 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#W|COMREF]]
{{RV|type=command


<h2 style="color:#000066">'''waypointPosition  ''waypoint'''''</h2>
|game1= ofp
|version1=


|game2= ofpe
|version2= 1.00


'''Operand types:'''
|game3= arma1
|version3= 1.00


'''waypoint:''' [[Array]]
|game4= arma2
|version4= 1.00


'''Type of returned value:'''
|game5= arma2oa
|version5= 1.50


[[Array]]
|game6= tkoh
|version6= 1.00


'''Description:'''
|game7= arma3
|version7= 0.50


Get waypoint position.
|gr1= Waypoints
Waypoint format is [[Waypoint]].


Note: This function is identical to [[getWPPos]].
|alias= [[getWPPos]]


'''Example:'''
|descr= Get provided waypoint's position.


wPos = '''waypointPosition''' [groupOne, 1]
|s1= [[waypointPosition]] [groupOrUnit, index]
 
|p1= groupOrUnit: [[Group]] or [[Object]]
 
|p2= index: [[Number]]
 
|r1= [[Array]] format [[Position#PositionAGL|PositionAGL]]
 
|x1= <sqf>_wPos = waypointPosition [_groupOne, 1];</sqf>
 
|seealso= [[waypoints]] [[setWaypointPosition]] [[waypointHousePosition]] [[setWPPos]]
}}

Latest revision as of 21:38, 28 September 2023

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