Other great resources: Official JS API docs, Scripting Forum
DORDER_RTB
Overview
Instruct a droid to return to your base.Availability
Warzone 3.2 and above.
Backport to earlier versions with backport.dorder.js and backport.orderDroid.js.
Example
Retreat to your base
// choose a location automatically (recommended) orderDroid(myDroid,DORDER_RTB); // choose a location near specified structure orderDroidObj(myDroid,DORDER_RTB,structureObject); // define a specific location (assuming droid can get there) orderDroidLoc(myDroid,DORDER_RTB,xPos,yPos);
Notes
The droid's current order can be determined from it's .order
property. For more infomration see Droid object.
Droids usually retreat to a suitable factory or your HQ.
See also
- DORDER_RETREAT – similar effect to DORDER_RTB, and available since Warzone 3.1 Beta 1
- orderDroid() – used to issue simple orders to droids
- orderDroidObj() – instruct droid to perform order on some object
- .order – list of all order constants