waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
(48 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|WAYPOINTPOSITION]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.96|WAYPOINTPOSITION]]
[[Category:Scripting Commands ArmA|WAYPOINTPOSITION]]


|game1= ofp
|version1=


<h2 style="color:#000066">'''waypointPosition  ''waypoint'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''waypoint:''' [[Array]]
|game5= arma2oa
|version5= 1.50


'''Type of returned value:'''
|game6= tkoh
|version6= 1.00


[[Array]]
|game7= arma3
|version7= 0.50


'''Compatibility:'''
|gr1= Waypoints


Added in version '''1.50'''
|descr= Returns [[Position]] of the given waypoint. {{Feature | Informative | This command is identical to [[getWPPos]]}}


'''Description:'''
|s1= [[waypointPosition]] waypoint


Get waypoint position.
|p1= waypoint: [[Array]] - format [[Waypoint]]


Waypoint format is [[Waypoint]].
|r1= [[Array]] - format [[PositionAGL]]


Note: This function is identical to [[getWPPos]].
|x1= <code>_wPos = [[waypointPosition]] [_groupOne, 1];</code>


 
|seealso= [[waypoints]], [[setWaypointPosition]], [[waypointHousePosition]], [[setWPPos]]
'''Example:'''
}}
 
wPos = '''waypointPosition''' [groupOne, 1]

Revision as of 23:00, 12 June 2021

Hover & click on the images for description

Description

Description:
Returns Position of the given waypoint.
This command is identical to getWPPos
Groups:
Waypoints

Syntax

Syntax:
waypointPosition waypoint
Parameters:
waypoint: Array - format Waypoint
Return Value:
Array - format PositionAGL

Examples

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

Additional Information

See also:
waypointssetWaypointPositionwaypointHousePositionsetWPPos

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