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

applyLimitSet()

Merges limits set by your script with limits set on the Structure Limits Screen...

 

Syntax

hackNetOff();
/* set default structure limits here using setStructureLimits() */
applyLimitSet();
hackNetOn();

Parameters

There are no parameters for this function.

Return value

ValueTypeDescriptionGame version
undefinedUndefinedThe function always returns undefined3.1 Beta 1

Example

hackNetOff();
for (var playnum=0; playnum<maxPlayers; playnum++) {
  setStructureLimits("A0LightFactory", 5, playnum);
  setStructureLimits("A0PowerGenerator", 8, playnum);
  setStructureLimits("A0ResearchFacility", 5, playnum);
  setStructureLimits("A0CommandCentre", 1, playnum);
  setStructureLimits("A0ComDroidControl", 1, playnum);
  setStructureLimits("A0CyborgFactory", 5, playnum);
  setStructureLimits("A0VTolFactory1", 5, playnum);
}
applyLimitSet();
hackNetOn();
This function should only be used during Player Initialisation otherwise desynchs may occur.
Availability 3.1 B1+

Requires:

  • Warzone 3.1 Beta 1 or above
Contents

Jump to:

See also

Â