BIS fnc counter: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
Lou Montana (talk | contribs) m (Fix example) |
||
Line 21: | Line 21: | ||
|r1= [[Number]] the new counter value | |r1= [[Number]] the new counter value | ||
|x1= <sqf>[player, 1] call BIS_fnc_counter;</sqf> | |x1= <sqf>[["TAG_Score", player], 1] call BIS_fnc_counter;</sqf> | ||
|seealso= [[BIS_fnc_deleteCounter]] | |seealso= [[BIS_fnc_deleteCounter]] | ||
}} | }} |
Revision as of 16:41, 11 April 2024
Description
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:
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