waypointPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| ofp |= Game name
| ofp |Game name=


|1.5|= Game version
|1.5|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Get [[Waypoint]]'s  [[Position]]. <br>'''Note''': This function is identical to [[getWPPos]]. |= Description
| Returns [[Position]] of the given waypoint. <br><br>
{{Informative | This command is identical to [[getWPPos]]}} |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Array]] <nowiki>=</nowiki> '''waypointPosition''' waypoint |= Syntax
| '''waypointPosition''' waypoint |SYNTAX=


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


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


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


}}
}}
Line 34: Line 35:


[[Category:Scripting Commands|WAYPOINTPOSITION]]
[[Category:Scripting Commands|WAYPOINTPOSITION]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|WAYPOINTPOSITION]]
[[Category:Scripting Commands OFP 1.96|WAYPOINTPOSITION]]
[[Category:Scripting Commands ArmA|WAYPOINTPOSITION]]
[[Category:Scripting Commands ArmA|WAYPOINTPOSITION]]

Revision as of 14:16, 2 September 2019

Hover & click on the images for description

Description

Description:
Returns Position of the given waypoint.

This command is identical to getWPPos
Groups:
Uncategorised

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