Other great resources: Official JS API docs, Scripting Forum
enableTemplate()
Used to make construction trucks available before building a HQ...
Syntax
enableTemplate(templateID);Parameters
Parameter | Type | Mandatory | Description | Game Version |
|---|---|---|---|---|
templateID | String | The ID of the template to enable. You should only ever enable the "ConstructionDroid" template. | 3.1 Beta 10 |
Return Value
Unknown
Notes
Historically, players have always been able to create construction trucks as soon as they've built a factory, without having to do any research and without having to build a HQ to enable Design Mode.
Changes made to Warzone in version 3.1 Beta 7 resulted in this time honoured tradition being broken, and there was a public uproar and angry mobs started showing up at the forum gates with pitch forks and torches. By Beta 10, a reliable solution had been found in the form of this enableTemplate() function.
Example
enableTemplate("ConstructionDroid");See also
enableComponent() – enable a component so it can be used for vehicle design
enableResearch() – enable a technology so it can be researched
enableStructure() – enable a structure so it can be built