Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Overview

Excerpt

Instruct a construction droid

...

to repair a damaged structure.

This order can only be given to a DROID_CONSTRUCT and the target must be a Structure object.

Availability

Warzone 3.1 Beta 1 and above.

Example

Code Block
themeEclipse
languagejavascript
linenumberstrue
orderDroidObj(myDroid,DORDER_REPAIR,structureObject);

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