Enable or disable the design tool... |
setDesign(enable); |
Parameter | Type | Mandatory | Description | Game version |
---|---|---|---|---|
enable | Boolean | Should the design tool be enabled?
Default: | 3.1 Beta 1 |
Value | Type | Description | Game version |
---|---|---|---|
undefined | Undefined | The function always returns undefined | 3.1 Beta 1 |
This function only affects the user interface for the localhost human player, it does not affect AIs in any way. That being said, AIs should avoid using new droid templates if they don't have a HQ if possible.
Enabling or disabling the design tool automatically shows or hides (as applicable) the DESIGN reticule button:
function eventStructureBuilt(structure) { if (structure.stattype == HQ) setDesign(true); } function eventDestroyed(gameObj) { if (gameObj.type==STRUCTURE && gameObj.stattype==HQ) setDesign(false); } |
Standard game rules require that the design tool is only enabled while the player has a HQ. |
AvailabilityRequires:
|
ContentsJump to: |
See alsoRelated articles:
Game mods:
|