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

Template Object

An object describing a droid template...

 

Properties

It's not clear what values will be present for properties that are not applicable - eg. if construction droid can't have an ECM turret or weapon turret, so what would the 'ecm' and 'weapons' properties contain?

PropertyTypeDescriptionGame version
type<not implemented yet>  
idNumberThe unique ID of the object3.2
nameStringThe name of the template3.2
costNumberThe amount of power that will be required to produce a droid using this template.3.2
droidTypeConstant

The type of droid the template creates:

3.2
bodyStringThe ID of the body defined in the template3.2
propulsionStringThe ID of the propulsion defined in the template3.2
brainStringThe ID of the brain turret (command module) defined in the template3.2
repairStringThe ID of the repair turret defined in the template3.2
ecmStringThe ID of the ECM turret defined in the template3.2
constructStringThe ID of the construction turret defined in the template3.2
weaponsArray of StringAn array of weapon IDs defined in the template3.2
This is an experimental feature and subject to change.
Availability 3.2+

Requires:

  • Warzone 3.2 or above
Contents

Jump to: