Other great resources: Official JS API docs, Scripting Forum
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 6 Next »
You must wrap this function call with hackNetOff() and hackNetOn() functions.
hackNetOff(); setStructureLimits(structure,limit[,player]); applyLimitSet(); // need to call this to apply the limits hackNetOn();
The player ID to apply the limits to.
Defaults to me.
undefined
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 is compatible with:
The following JS API features relate to this function: