BIS_fnc_counter
- Global argument
- Local effect
- Arma 3 v0.50
- First in Take On Helicopters v1.00
Function · Markdown · JSON · original wiki page
Description
Modify the given counter, create it if does not exist.
Important
It is not possible to broadcast the counter (like setVariable does) with this function.
Syntax
[varName, add, modulo] call BIS_fnc_counter
Parameters:
varName: String or Array format [varName, namespace] - default namespace is missionNamespaceadd: Number - (Optional, default 0) the value to be addedmodulo: Number - (Optional, default -1) the modulo to use for counter cycle, applied after the addition
Returns: Number the new counter value
Examples
Example 1
[["TAG_Score", player], 1] call BIS_fnc_counter;