(info) Other great resources: Official JS API docs, Scripting Forum

DORDER_RECYCLE

Recycle a droid...

 

Syntax

DORDER_RECYCLE

Example

Get repaired at a specific repair facility
// use specific recycling structure (factory or repair station)
orderDroidObj(myDroid, DORDER_RECYCLE, recycleStructure);
 
// use any recycling point (WZ 3.2+ only)
orderDroid(myDroid, DORDER_RECYCLE);

Notes

At the start of a game, before repair facilities are available, recycling badly damaged droids is a good tactic:

  • You receive 50% of the droids cost back when it gets recycled.
  • The droid's experience is retained and passed on to the next applicable droid you build

Land droids can be recycled at any factory or repair facility. VTOLs should only be recycled at VTOL factories.

If you're looking to recycle a building, use DORDER_DEMOLISH instead.

Availability 3.2+

Requires:

  • Warzone 3.2 or above
Contents

Jump to:

Scripting: Droids

Related objects:

Constants:

  • .action – what action is the droid doing?
  • .droidType – what category of droid is it?
  • .order – what is the droids order?

Create them:

Organise them:

List or count them:

Tell them what to do:

How to's:

Transfer them between players:

Find out what's happening to droids:

Remove them:

Player Initialisation: