setStatValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Bottom Section</h3>" to "") |
||
Line 27: | Line 27: | ||
| [[getStatValue]], [[Arma 3 Stat Names]] | | [[getStatValue]], [[Arma 3 Stat Names]] | ||
}} | }} | ||
Revision as of 14:10, 18 January 2021
Description
- Description:
- Sets a value to a given stat.
A list of possible StatNames can be found here: Arma 3 Stat Names
Its important to note that most Stats are restricted to scripts and missions in certain paths.
For example "ExpWarlockDown" is restricted to scripts in any subdirectory of "a3\Missions_F_Exp\Campaign\Missions\" - Groups:
- System
Syntax
- Syntax:
- setStatValue [name, value]
- Parameters:
- [name, value]: Array
- name: String
- value: Number
- Return Value:
- Boolean
Examples
- Example 1:
setStatValue ["ExpWarlockDown", 1]; // Unlocks the "Warlock Down" Steam achivement
Additional Information
- See also:
- getStatValueArma 3 Stat Names
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