Other great resources: Official JS API docs, Scripting Forum
DORDER_REARM
Overview
Instruct a VTOL to return to a rearming pad for repairs and rearming.Availability
Warzone 3.2 and above.
 Backport to earlier versions with backport.dorder.js and backport.orderDroid.js.
Example
Return to any rearming pad (Warzone 3.2+)
// 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);
Notes
The droid's current order can be determined from it's .order
 property. For more infomration see Droid object.
If you don't have any rearming pads, the VTOL will land somewhere in or near your base and won't be repaired (unless you've researched Auto-Repair tech) or rearmed.
The droid will perform several actions throughout the repair/rearm process. For more information see:Â Working 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