Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Overview

Instruct a droid to stop what it's doing.

This is particularly useful in the case of VTOLs - usually your VTOLs will keep attacking their last target until it's destroyed, the only way to stop them doing that is with DORDER_STOP.

Availability

Warzone 3.2 and above.

Backport to earlier versions with dorder.js and <link to follow>.

Example

Tell a VTOL to stop it's attacks and then rearm itself (Warzone 3.2+)
if (isVTOL(myDroid)) {
  orderDroid(myDroid,DORDER_STOP); // stop attacking your target
  orderDroid(myDoid,DORDER_REARM); // go rearm yourself and then wait for next command
}
Tell a VTOL to stop it's attacks by moving it to your base
// this is a workaround for Warzone 3.1
if (isVTOL(myDroid)) {
  orderDroidLoc(myDroid,DORDER_MOVE,startPositions[me].x,startPositions[me].y);
}

See also

  • orderDroid() – used to issue simple orders to droids
  • .order – list of all order constants
  • No labels