Other great resources: Official JS API docs, Scripting Forum
DORDER_RTR_SPECIFIED
Overview
Instruct a land droid to go to a specific repair facility for repairs.Availability
Requires backport.dorder.js.
This isn't a standard feature of the JS API, however it's a constant used by the game engine so it's recognised by Warzone from at least 3.1 Beta 1 onwards.
Example
Get repaired at a specific repair facility
// use specific repair facility: if (!isVTOL(myDroid)) orderDroidObj(myDroid,DORDER_RTR_SPECIFIED,repairStation);
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 repair facilities, the droid will retreat to your HQ (or somewhere near your base if you don't have one) and won't get repaired unless you have researched Auto-Repair tech.
The droid will perform several actions throughout the repair process. For more information see: Working with Repairs & Rearming.
See also
- Droids – quick reference of all JS API features relating to droids
- DORDER_REARM – send a VTOL for repairs/rearming
- DORDER_RTB – return to base
- DORDER_RTR – send a land droid for repairs at any repair facility
- isVTOL() – determine if a droid is a VTOL or not
- orderDroid() – used to issue simple orders to droids
- orderDroidObj() – instruct droid to perform order on some object
- .order – list of all order constants