setStatValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\{\{cc\|([^ ]*)\}\}([^ ]*)<\/code>" to "<code>$1// $2$3</code>") |
||
Line 19: | Line 19: | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= <code>setStatValue ["ExpWarlockDown", 1]; | |x1= <code>setStatValue ["ExpWarlockDown", 1]; // Unlocks the "Warlock Down" Steam achivement</code> | ||
|seealso= [[getStatValue]] [[Arma 3: Stat Names]] | |seealso= [[getStatValue]] [[Arma 3: Stat Names]] | ||
}} | }} |
Revision as of 11:22, 12 May 2022
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:
- getStatValue Arma 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