...
Backport to earlier versions with backport.dorder.js and backport.orderDroid.js.
Example
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
// 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