waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
(21 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|W]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.97|W]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|W]]


back to [[Scripting_Reference#W|COMREF]]
| ofp |= Game name


<h2 style="color:#000066">'''waypointPosition  ''waypoint'''''</h2>
|1.5|= Game version
____________________________________________________________________________________________


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


'''Operand types:'''
| '''waypointPosition''' waypoint |SYNTAX=


'''waypoint:''' [[Array]]
|p1= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1=


'''Type of returned value:'''
| [[Array]] - format [[PositionAGL]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_wPos = [[waypointPosition]] [_groupOne, 1];</code> |EXAMPLE1=
____________________________________________________________________________________________


[[Array]]
| [[waypoints]], [[setWaypointPosition]], [[waypointHousePosition]], [[setWPPos]] |SEEALSO=


'''Compatibility:'''
}}


Added in version '''1.50'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Get waypoint position.
<h3 style="display:none">Bottom Section</h3>


Waypoint format is [[Waypoint]].
[[Category:Scripting Commands|WAYPOINTPOSITION]]
 
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
Note: This function is identical to [[getWPPos]].
[[Category:Scripting Commands OFP 1.96|WAYPOINTPOSITION]]
 
[[Category:Scripting Commands ArmA|WAYPOINTPOSITION]]
 
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
'''Example:'''
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
wPos = '''waypointPosition''' [groupOne, 1]
[[Category:Command_Group:_Waypoints|{{uc:{{PAGENAME}}}}]]

Revision as of 15:51, 7 April 2019

Hover & click on the images for description

Description

Description:
Returns Position of the given waypoint.

This command is identical to getWPPos
Groups:
Uncategorised

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

Notes

Bottom Section