Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

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

 

Syntax

Code Block
themeRDark
languagejavascript
linenumberstrue
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

Code Block
themeRDark
languagejavascript
linenumberstrue
enableTemplate("ConstructionDroid");

See also

Div
classbox notice

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! 

Div
classbox
Availability
Status
colourGreen
title3.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)

Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5