BIS_fnc_counter

From Bohemia Interactive Community
Revision as of 16:30, 11 April 2024 by Lou Montana (talk | contribs) (Page filling)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Modify the given counter, create it if does not exist.
Execution:
call
Groups:
Systems

Syntax

Syntax:
[varName, add, modulo] call BIS_fnc_counter
Parameters:
varName: String or Array format [varName, namespace] - default namespace is missionNamespace
add: Number - (Optional, default 0) the value to be added
modulo: Number - (Optional, default -1) the modulo to use for counter cycle
Return Value:
Number the new counter value

Examples

Example 1:
[player, 1] call BIS_fnc_counter;

Additional Information

See also:
BIS_fnc_deleteCounter

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note