waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 7: Line 6:


|gr1= Waypoints |GROUP1=
|gr1= Waypoints |GROUP1=
____________________________________________________________________________________________


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


| '''waypointPosition''' waypoint |SYNTAX=
| '''waypointPosition''' waypoint |SYNTAX=
Line 18: Line 15:


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


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

Revision as of 05:15, 17 January 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

Notes

Bottom Section