waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
m (Some wiki formatting)
(23 intermediate revisions by 2 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


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


| '''waypointPosition''' waypoint |SYNTAX=
|game4= arma2
|version4= 1.00


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


| [[Array]] - format [[PositionAGL]] |RETURNVALUE=
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00
 
|x1= <code>_wPos = [[waypointPosition]] [_groupOne, 1];</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[waypoints]], [[setWaypointPosition]], [[waypointHousePosition]], [[setWPPos]] |SEEALSO=
|game7= arma3
|version7= 0.50


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


<h3 style="display:none">Notes</h3>
|p1= waypoint: [[Array]] - format [[Waypoint]]
<dl class="command_description">
<!-- Note Section BEGIN -->


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


<h3 style="display:none">Bottom Section</h3>
|x1= <code>_wPos = [[waypointPosition]] [_groupOne, 1];</code>


[[Category:Scripting Commands|WAYPOINTPOSITION]]
|seealso= [[waypoints]], [[setWaypointPosition]], [[waypointHousePosition]], [[setWPPos]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands OFP 1.96|WAYPOINTPOSITION]]
[[Category:Scripting Commands Armed Assault|WAYPOINTPOSITION]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Waypoints|{{uc:{{PAGENAME}}}}]]

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