waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.5|Game version=
|1.5


|gr1= Waypoints |GROUP1=
|gr1= Waypoints


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


| '''waypointPosition''' waypoint |SYNTAX=
| '''waypointPosition''' waypoint


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


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


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


}}
}}

Revision as of 11:43, 18 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

Bottom Section