Versions Compared

Key

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

...

Backport to earlier versions with <link dorder.js and <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
}

...