setStatValue: Difference between revisions
| Lou Montana (talk | contribs)  (Fix Category:Pages using duplicate arguments in template calls and fix Arma 3 Stat Names link) | mNo edit summary | ||
| Line 5: | Line 5: | ||
| |1.18|Game version= | |1.18|Game version= | ||
| |gr1= System |GROUP1= | |||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 23:52, 21 September 2020
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
 
	