Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Migrated to Confluence 5.3
Excerpt |
---|
Display or hide the localhost human player's radar mini-map... |
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
setMiniMap(show); |
Parameters
Parameter | Type | Mandatory | Description | Game version |
---|---|---|---|---|
show | Boolean | Should the minimap be shown?
Default: | 3.1 Beta 1 |
Return value
Value | Type | Description | Game version |
---|---|---|---|
undefined | Undefined | The function always returns undefined | 3.1 Beta 1 |
Example
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
// don't do this in AI scripts because the setMiniMap() function only applies to the human players minimap function eventStructureBuilt(structure) { if (structure.stattype == HQ) setMiniMap(true); } function eventDestroyed(gameObj) { if (gameObj.type==STRUCTURE && gameObj.stattype==HQ) setMiniMap(false); } |
Div | ||
---|---|---|
| ||
Standard game rules require that the mini map is only enabled while the player has a HQ. |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|
Div | ||
---|---|---|
| ||
See alsoRelated articles:
|