waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Some wiki formatting)
Line 24: Line 24:
|gr1= Waypoints
|gr1= Waypoints


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


|s1= [[waypointPosition]] waypoint
|descr= Get provided waypoint's position.


|p1= waypoint: [[Array]] - format [[Waypoint]]
|s1= [[waypointPosition]] [groupOrUnit, index]
 
|p1= groupOrUnit: [[Group]] or [[Object]]
 
|p2= index: [[Number]]


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


|x1= <code>_wPos = [[waypointPosition]] [_groupOne, 1];</code>
|x1= <sqf>_wPos = waypointPosition [_groupOne, 1];</sqf>


|seealso= [[waypoints]] [[setWaypointPosition]] [[waypointHousePosition]] [[setWPPos]]
|seealso= [[waypoints]] [[setWaypointPosition]] [[waypointHousePosition]] [[setWPPos]]
}}
}}

Revision as of 17: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