Versions Compared

Key

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

...

 Backport to earlier versions with backport.dorder.js and backport.orderDroid.js.

Example

Code Block
themeEclipseRDark
languagejavascript
titleReturn to any rearming pad (Warzone 3.2+)
linenumberstrue
// use nearest available rearming pad (recommended):
if (isVTOL(myDroid)) orderDroid(myDroid,DORDER_REARM);

// use specific rearming pad:
if (isVTOL(myDroid)) orderDroidObj(myDroid,DORDER_REARM,rearmingPad);

...

The droid will perform several actions throughout the repair/rearm process. For more information see: Monitor repair/rearm progressWorking with Repairs & Rearming.

See also

  • Droids – quick reference of all JS API features relating to droids
  • DORDER_RTB – return to base
  • DORDER_RTR – the land droid equivalent of DORDER_REARM
  • isVTOL() – determine if a droid is a VTOL or not
  • orderDroid() – used to issue simple orders to droids
  • orderDroidObj() – instruct droid to perform an order on or at some object
  • .order – list of all order constants