Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

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
  • No labels