setCurrentWaypoint: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
(note formating, add notedate & see also) |
||
Line 24: | Line 24: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[addWaypoint]], [[ | | [[waypoints]], [[deleteWaypoint]], [[copyWaypoints]], [[setWaypointBehaviour]], [[setWaypointCombatMode]], [[setWaypointCompletionRadius]], [[setWaypointDescription]], [[setWaypointFormation]], [[setWaypointHousePosition]], [[setWaypointPosition]], [[setWaypointScript]], [[setWaypointSpeed]], [[setWaypointStatements]], [[setWaypointTimeout]], [[setWaypointType]], [[setWaypointVisible]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[setWaypointLoiterRadius]], [[waypointLoiterRadius]], [[addWaypoint]], [[setWaypointLoiterType]] |= See also | ||
}} | }} | ||
Line 30: | Line 30: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on 27 Aug 2007 | |||
<dd class="notedate"> | <dt class="note">[[User:Way|Way]] | ||
<dt class="note"> | |||
<dd class="note"> | <dd class="note"> | ||
Does not seem to work with Game Logic as of ArmA v1.08. Crashes to desktop. | |||
<dd class="notedate"> | <dd class="notedate">Posted on 26 Nov 2008 | ||
<dt class="note"> | <dt class="note">[[User:Ceeeb|Ceeeb]] | ||
<dd class="note"> | <dd class="note"> | ||
Note that a waypoints number as seen in the mission editor is not the same as it's waypoint number using this command. In the mission editor, waypoint 0 refers to the first placed waypoint, whereas waypoint 0 with the setCurrentWaypoint command refers to the unit's initial position waypoint. | Note that a waypoints number as seen in the mission editor is not the same as it's waypoint number using this command. In the mission editor, waypoint 0 refers to the first placed waypoint, whereas waypoint 0 with the setCurrentWaypoint command refers to the unit's initial position waypoint. | ||
<dd class="notedate"> | <dd class="notedate">Posted on 17 Jan 2010 | ||
<dt class="note"> | <dt class="note">[[User:Galzohar|Galzohar]] | ||
<dd class="note"> | <dd class="note"> | ||
This command will '''crash the game''' to desktop with no error message (only "stack overflow" is shown in the RPT file) if you call it from the on act field of a waypoint that belongs to that same unit. It also seems to crash in other situations when called from code written in the editor but I couldn't figure out how to reproduce it. Executing a script that will then execute this command does not crash the game, but causes issues that aren't a whole lot worse than crashing - Mostly it seems to somehow overload the server as well as clients which makes other scripts not really function as intended. I suggest never using this command (at least right as a unit reached its waypoint) unless someone knows exactly what is wrong with it and how to avoid it. | |||
Tested on Arma 2 vanilla 1.05. | |||
<dd class="notedate"> | <dd class="notedate">Posted 13 Aug 2012 | ||
<dt class="note"> | <dt class="note">[[User:Igneous01|Igneous01]] | ||
<dd class="note"> | <dd class="note"> | ||
Using this command forces the last waypoint to complete. Any code in the on Act of that waypoint will run. | Using this command forces the last waypoint to complete. Any code in the on Act of that waypoint will run. |
Revision as of 13:35, 8 May 2014
Description
- Description:
- Sets the currently active waypoint for a group.
- Groups:
- Uncategorised
Syntax
- Syntax:
- groupName setCurrentWaypoint waypoint
- Parameters:
- groupName: Object or Group
- waypoint: Array - format Waypoint
- Return Value:
- Nothing
Examples
- Example 1:
_grp setCurrentWaypoint [_grp, 1]
Additional Information
- See also:
- waypointsdeleteWaypointcopyWaypointssetWaypointBehavioursetWaypointCombatModesetWaypointCompletionRadiussetWaypointDescriptionsetWaypointFormationsetWaypointHousePositionsetWaypointPositionsetWaypointScriptsetWaypointSpeedsetWaypointStatementssetWaypointTimeoutsetWaypointTypesetWaypointVisiblewaypointAttachVehiclewaypointAttachedVehiclesetWaypointLoiterRadiuswaypointLoiterRadiusaddWaypointsetWaypointLoiterType
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
- Posted on 27 Aug 2007
- Way
- Does not seem to work with Game Logic as of ArmA v1.08. Crashes to desktop.
- Posted on 26 Nov 2008
- Ceeeb
- Note that a waypoints number as seen in the mission editor is not the same as it's waypoint number using this command. In the mission editor, waypoint 0 refers to the first placed waypoint, whereas waypoint 0 with the setCurrentWaypoint command refers to the unit's initial position waypoint.
- Posted on 17 Jan 2010
- Galzohar
- This command will crash the game to desktop with no error message (only "stack overflow" is shown in the RPT file) if you call it from the on act field of a waypoint that belongs to that same unit. It also seems to crash in other situations when called from code written in the editor but I couldn't figure out how to reproduce it. Executing a script that will then execute this command does not crash the game, but causes issues that aren't a whole lot worse than crashing - Mostly it seems to somehow overload the server as well as clients which makes other scripts not really function as intended. I suggest never using this command (at least right as a unit reached its waypoint) unless someone knows exactly what is wrong with it and how to avoid it. Tested on Arma 2 vanilla 1.05.
- Posted 13 Aug 2012
- Igneous01
- Using this command forces the last waypoint to complete. Any code in the on Act of that waypoint will run.