Other great resources: Official JS API docs, Scripting Forum
enableTemplate()
- Aubergine
Â
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
Using it elsewhere or in any other way will likely trigger The Collapse. You have been warned!Â
Availability 3.1 B10+
Requires:
- Warzone 3.1 Beta 10 or above
It was actually added in Beta 9, but that was a duff release so we don't talk about it.
Contents
Jump to:
Â