Overview
Instruct a droid to recycle itself at a factory or repair facility.Availability
Requires backport.dorder.js and backport.orderDroid.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 recycling point (factory or repair station) orderDroidObj(myDroid,DORDER_RECYCLE,recyclePoint); // use any recycling point orderDroid(myDroid,DORDER_RECYCLE);
Notes
The droid's current order can be determined from it's .order
property. For more infomration see Droid object.
Land droids can be recycled at any factory or repair facility. VTOLs can only be recycled at VTOL factories.
You receive 50% of the droids cost back when it gets recycled.
At the start of the game, before you've researched repair facilities, recycling is a useful way to get rid of badly damaged droids as it gives you some extra power to spend on their replacements.
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