setWaypointPosition: Difference between revisions
Jump to navigation
Jump to search
m (duplicated) |
mNo edit summary |
||
Line 21: | Line 21: | ||
|x1= <code>[_grp, 2] [[setWaypointPosition]] <nowiki>[</nowiki>[[position]] [[player]], 0];</code> |= Example 1 | |x1= <code>[_grp, 2] [[setWaypointPosition]] <nowiki>[</nowiki>[[position]] [[player]], 0];</code> |= Example 1 | ||
|x2= <code>[_grp, 2] [[setWaypointPosition]] <nowiki>[</nowiki>[[position]] [[player]], -1]; // -1 cause the command to place the waypoint exactly to the wanted position (0 - engine will place it on the 1st non-locked position in case there's an object on the target coordinates) </code> |= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 17:24, 14 November 2018
Description
- Description:
- Moves the waypoint to a random position in a circle with the given center and radius.
- Groups:
- Uncategorised
Syntax
- Syntax:
- waypoint setWaypointPosition [center, radius]
- Parameters:
- waypoint: Array - format Waypoint
- [center, radius]: Array
- center: Array - format Position
- radius: Number meters
- Return Value:
- Nothing
Examples
- Example 1:
[_grp, 2] setWaypointPosition [position player, 0];
- Example 2:
[_grp, 2] setWaypointPosition [position player, -1]; // -1 cause the command to place the waypoint exactly to the wanted position (0 - engine will place it on the 1st non-locked position in case there's an object on the target coordinates)
Additional Information
- See also:
- waypointsdeleteWaypointcopyWaypointssetCurrentWaypointsetWaypointBehavioursetWaypointCombatModesetWaypointCompletionRadiussetWaypointDescriptionsetWaypointFormationsetWaypointHousePositionsetWaypointScriptsetWaypointSpeedsetWaypointStatementssetWaypointTimeoutsetWaypointTypesetWaypointVisiblewaypointAttachVehiclewaypointAttachedVehiclesetWaypointLoiterRadiuswaypointLoiterRadiusaddWaypointsetWaypointLoiterTypewaypointSpeed
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