Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

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

It's not entirely clear what will actually happen to your droid when you tell it to "STOP" - the effect will probably depend on the type of droid and what it's currently doing. It's probably best to issue another command immediately afterwards (for example, DORDER_HOLD) so that you know for sure what your droid is doing.

Availability

Warzone 3.2 and above.

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

Example

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

Notes

The droid's current order can be determined from it's .order property. For more infomration see Droid object.

It's not entirely clear what will actually happen to your droid when you tell it to "STOP" - the effect will probably depend on the type of droid and what it's currently doing. It's probably best to issue another command immediately afterwards (for example, DORDER_HOLD) so that you know for sure what your droid is doing.

See also

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