Arma 3 Scripting

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:

Returns: Number the new counter value

Examples

Example 1

[["TAG_Score", player], 1] call BIS_fnc_counter;

See also

BIS_fnc_deleteCounter