setStatValue: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9\. _"\\']+)<\/tt>" to "{{hl|$1}}")  | 
				Lou Montana (talk | contribs)  m (Some wiki formatting)  | 
				||
| Line 13: | Line 13: | ||
|s1= [[setStatValue]] [name, value]  | |s1= [[setStatValue]] [name, value]  | ||
|p1=   | |p1= name: [[String]]  | ||
|p2  | |p2= value: [[Number]]  | ||
|r1= [[Boolean]]  | |r1= [[Boolean]]  | ||
Revision as of 17:51, 24 November 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: 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