waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
(36 intermediate revisions by 6 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


| Get [[Waypoint]]'s  [[Position]]. <br>'''Note''': This function is identical to [[getWPPos]]. |= Description
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| [[Array]] <nowiki>=</nowiki> '''waypointPosition''' waypoint |= Syntax
|game4= arma2
|version4= 1.00


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


| [[Array]] - format [[Position]] |= Return value
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00
 
|x1= <pre>_wPos = waypointPosition [_groupOne, 1]</pre> |= Example 1
____________________________________________________________________________________________


| [[waypoints]], [[setWaypointPosition]], [[setWPPos]] |= See also
|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.96|WAYPOINTPOSITION]]
}}
[[Category:Scripting Commands ArmA|WAYPOINTPOSITION]]
[[Category:Scripting Commands ArmA2|{{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