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

DORDER_REPAIR

Overview

Instruct a construction droid to repair a damaged Structure object.

Availability

Warzone 3.1 Beta 1 and above.

Example

orderDroidObj(myConstructionDroid,DORDER_REPAIR,damagedStructureObject);

Notes

The droid's current order can be determined from it's .order property. For more infomration see Droid object.

As of Warzone 3.2, you can work out what which structures are damaged from their .health property. For more information see Structure object.

See also

  • Droids – quick reference of API features relating to droids
  • eventAttacked() – a good trigger to see if things need repairing
  • orderDroidObj() – tell a droid to do something to something
  • Structure object – DORDER_REPAIR must be carried out on a structure object