setWPPos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "killzone_kid" to "Killzone_Kid")
 
(84 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.21


|1.21|= Game version
|game2= ofpe
|version2= 1.00


|eff= local |= Effects in MP
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| Set waypoint position |= Description
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| [[Waypoint]] '''setWPPos''' [[Position2D]]|= Syntax
|game5= arma2oa
|version5= 1.50


|p1= [[Waypoint]]: [[Array]] |= Parameter 1
|game6= tkoh
|version6= 1.00


|p2= [[Position2D]]: [[Array]] |= Parameter 2
|game7= arma3
|version7= 0.50


| [[Nothing]] |= Return value
|gr1= Waypoints
____________________________________________________________________________________________
 
|x1= <code>[_groupOne, 1] setWPPos [[markerPos]] "MarkerOne"</code> |= Example 1
____________________________________________________________________________________________


| |= See also
|descr= Sets waypoint position.
{{Feature|informative|This command is identical to <sqf inline>setWaypointPosition [pos, -1]</sqf> (see [[setWaypointPosition]] description for more information).}}


}}
|s1= waypoint [[setWPPos]] pos
 
|p1= waypoint: [[Array]] format [[Waypoint]]
 
|p2= pos: [[Array]] format [[Position#PositionAGL|PositionAGL]]
 
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>[_groupOne, 1] setWPPos markerPos "MarkerOne";</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[deleteWaypoint]] [[copyWaypoints]] [[setCurrentWaypoint]] [[setWaypointBehaviour]] [[setWaypointCombatMode]] [[setWaypointCompletionRadius]] [[setWaypointDescription]] [[setWaypointFormation]] [[setWaypointHousePosition]] [[setWaypointPosition]] [[setWaypointScript]] [[setWaypointSpeed]] [[setWaypointStatements]] [[setWaypointTimeout]] [[setWaypointType]] [[setWaypointVisible]] [[waypointAttachVehicle]] [[waypointAttachedVehicle]] [[setWaypointLoiterRadius]] [[waypointLoiterRadius]] [[addWaypoint]] [[setWaypointLoiterType]] [[waypoints]] [[waypointSpeed]]
</dl>
}}


<h3 style="display:none">Bottom Section</h3>
{{Note
[[Category:Scripting Commands|SETWPPOS]]
|user= Killzone_Kid
[[Category:Scripting Commands OFP 1.96|SETWPPOS]]
|timestamp= 20181115142700
[[Category:Scripting Commands OFP 1.46|SETWPPOS]]
|text= Even though this command can accept [[Position#Introduction|Position2D]], it is better to always explicitly state the elevation of waypoint by providing [[Position#PositionAGL|PositionAGL]].
[[Category:Scripting Commands ArmA|SETWPPOS]]
}}
[[Category:Command_Group:_Waypoints|{{uc:{{PAGENAME}}}}]]

Latest revision as of 17:52, 18 February 2024

Hover & click on the images for description

Description

Description:
Sets waypoint position.
This command is identical to setWaypointPosition [pos, -1] (see setWaypointPosition description for more information).
Groups:
Waypoints

Syntax

Syntax:
waypoint setWPPos pos
Parameters:
waypoint: Array format Waypoint
pos: Array format PositionAGL
Return Value:
Nothing

Examples

Example 1:
[_groupOne, 1] setWPPos markerPos "MarkerOne";

Additional Information

See also:
deleteWaypoint copyWaypoints setCurrentWaypoint setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointFormation setWaypointHousePosition setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible waypointAttachVehicle waypointAttachedVehicle setWaypointLoiterRadius waypointLoiterRadius addWaypoint setWaypointLoiterType waypoints waypointSpeed

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
Killzone_Kid - c
Posted on Nov 15, 2018 - 14:27 (UTC)
Even though this command can accept Position2D, it is better to always explicitly state the elevation of waypoint by providing PositionAGL.