setStatValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
(7 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
A list of possible StatNames can be found here: [[Arma 3: Stat Names]]<br> | A list of possible StatNames can be found here: [[Arma 3: Stat Names]]<br> | ||
Its important to note that most Stats are restricted to scripts and missions in certain paths.<br> | Its important to note that most Stats are restricted to scripts and missions in certain paths.<br> | ||
For example "ExpWarlockDown" is restricted to scripts in any subdirectory of | For example "ExpWarlockDown" is restricted to scripts in any subdirectory of {{hl|"a3\Missions_F_Exp\Campaign\Missions\"}} | ||
|s1= | |s1= [[setStatValue]] [name, value] | ||
|p1= | |p1= name: [[String]] | ||
|p2= | |p2= value: [[Number]] | ||
| | |r1= [[Boolean]] | ||
| | |x1= <sqf>setStatValue ["ExpWarlockDown", 1]; // Unlocks the "Warlock Down" Steam achivement</sqf> | ||
|seealso= [[getStatValue]] [[Arma 3: Stat Names]] | |||
|seealso= [[getStatValue]] | |||
}} | }} |
Latest revision as of 10:24, 13 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