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

enableTemplate()

Used to make construction trucks available before building a HQ...

 

Syntax

enableTemplate(templateID);

Parameters

ParameterTypeMandatoryDescriptionGame Version

templateID

String(tick)

The ID of the template to enable.

You should only ever enable the "ConstructionDroid" template.

3.1 Beta 10

Return Value

(question) 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

This special function should only be used during Player Initialisation and should only be used to enable the "ConstructionDroid" template.

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. (wink)

Contents

Jump to:

Â