Remove a label from the game... |
removeLabel(label); |
Parameter | Type | Mandatory | Notes | Warzone Version |
---|---|---|---|---|
label | String | ![]() | The label to remove. | 3.2 |
Value | Type | Notes | Warzone Version |
---|---|---|---|
<number> | Number | The number of labels that were removed:
If <number> is greater than one, it means that somehow the same label was defined multiple times (most likely in labels.ini), and all <number> occurrences were removed. | 3.2 |
<error> | Error | An error occurred, most likely invalid parameters. | 3.2 |
When the label is removed, what happens to the object it was pointing to? It depends on the type of object:
Remember that labels are shared by all scripts, so if you delete a label that deletes it for all other scripts as well.
if ( removeLabel("foo") ) { // label(s) removed (+ve numbers are truthy) } else { // label not found (0 is falsey) } |
Availability Requires:
|
ContentsJump to: |