Requires tutorial mode
In order for this function to work, you need to be in tutorial mode. Activate tutorial mode with the setTutorialMode() function.
Overview
This function allows you to enable a reticule button.Availability
Warzone 3.1 Beta 1 and above.
Syntax
addReticuleButton(button);
Parameters
Parameter | Type | Mandatory | Description | Game version |
---|---|---|---|---|
button | Constant | A constant defining which button to display:
| 3.1 Beta 1 |
Return value
Value | Type | Description | Game version |
---|---|---|---|
undefined | Undefined | The reticule button was added (or was already present) | 3.1 Beta 1 |
<error> | Error | The "button" parameter contained an invalid constant. | 3.1 Beta 1 |
Example
Enable the research button
setTutorialMode(true); addReticuleButton(RESEARCH);
See also
- Reticule buttons – overview of reticule button constants
- removeReticuleButton() – disable a reticule button
- setTutorialMode() – enable or disable tutorial mode