setStatValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Comments" to "|Comments=") |
Lou Montana (talk | contribs) m (Text replacement - "|PARAMETER1= |p3=" to "|PARAMETER2= |p3=") |
||
Line 17: | Line 17: | ||
|p1= [name, value]: [[Array]] |PARAMETER1= | |p1= [name, value]: [[Array]] |PARAMETER1= | ||
|p2= name: [[String]] | | |p2= name: [[String]] |PARAMETER2= | ||
|p3= value: [[Number]] |PARAMETER1= | |p3= value: [[Number]] |PARAMETER1= | ||
Revision as of 08:55, 3 September 2019
Description
- Description:
- Sets a value to a given stat.
A list of possible StatNames can be found here: StatNames
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:
- Uncategorised
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:
- getStatValue
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