waypoints: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma1 * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= arma1 |version1= $1 |game2")
mNo edit summary
 
(30 intermediate revisions by one other user not shown)
Line 22: Line 22:
|descr= Returns an array of waypoints for the specified unit/group.
|descr= Returns an array of waypoints for the specified unit/group.


|s1= '''waypoints''' groupName
|s1= [[waypoints]] groupName


|p1= groupName: [[Group]]
|p1= groupName: [[Group]] or [[Object]]


|r1= [[Array]] of waypoints each in format [[Waypoint]]
|r1= [[Array]] of [[Waypoint]]s


|x1=<code>[[waypoints]] [[player]];</code>
|x1= <sqf>waypoints player;</sqf>
|x2=<code>_wPosArray = [[waypoints]] group10; {{cc|could return [[EAST 1-1-A,0],[EAST 1-1-A,1],[EAST 1-1-A,2]]}}</code>


|seealso= [[deleteWaypoint]], [[copyWaypoints]], [[setCurrentWaypoint]], [[setWaypointBehaviour]], [[setWaypointCombatMode]], [[setWaypointCompletionRadius]], [[setWaypointDescription]], [[setWaypointFormation]], [[setWaypointHousePosition]], [[setWaypointPosition]], [[setWaypointScript]], [[setWaypointSpeed]], [[setWaypointStatements]], [[setWaypointTimeout]], [[setWaypointType]], [[setWaypointVisible]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[setWaypointLoiterRadius]], [[waypointLoiterRadius]], [[addWaypoint]], [[setWaypointLoiterType]], [[waypointSpeed]], [[setWPPos]], [[waypointName]]
|x2= <sqf>_wPosArray = waypoints group10; // returns e.g [[EAST 1-1-A,0],[EAST 1-1-A,1],[EAST 1-1-A,2]]</sqf>
 
|seealso= [[deleteWaypoint]] [[copyWaypoints]] [[setCurrentWaypoint]] [[setWaypointBehaviour]] [[setWaypointCombatMode]] [[setWaypointCompletionRadius]] [[setWaypointDescription]] [[setWaypointFormation]] [[setWaypointHousePosition]] [[setWaypointPosition]] [[setWaypointScript]] [[setWaypointSpeed]] [[setWaypointStatements]] [[setWaypointTimeout]] [[setWaypointType]] [[setWaypointVisible]] [[waypointAttachVehicle]] [[waypointAttachedVehicle]] [[setWaypointLoiterRadius]] [[waypointLoiterRadius]] [[addWaypoint]] [[setWaypointLoiterType]] [[waypointSpeed]] [[setWPPos]] [[waypointName]]
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 10:43, 28 September 2023

Hover & click on the images for description

Description

Description:
Returns an array of waypoints for the specified unit/group.
Groups:
Waypoints

Syntax

Syntax:
waypoints groupName
Parameters:
groupName: Group or Object
Return Value:
Array of Waypoints

Examples

Example 1:
waypoints player;
Example 2:
_wPosArray = waypoints group10; // returns e.g [[EAST 1-1-A,0],[EAST 1-1-A,1],[EAST 1-1-A,2]]

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 waypointSpeed setWPPos waypointName

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