waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
mNo edit summary
 
(31 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
 
|alias= [[getWPPos]]
 
|descr= Get provided waypoint's position.
 
|s1= [[waypointPosition]] [groupOrUnit, index]
 
|p1= groupOrUnit: [[Group]] or [[Object]]


<h3 style="display:none">Notes</h3>
|p2= index: [[Number]]
<dl class="command_description">
<!-- Note Section BEGIN -->


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


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


[[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 ArmA|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}}}}]]

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