Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 is to... stop them doing that is with DORDER_STOP. (smile)(info) This constant was added in

Availability

Warzone 3.2 and above.

Backport to earlier versions with <link to follow>

Example

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
}

...