setStatValue: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= System |GROUP1= | |gr1= System |GROUP1= | ||
| Sets a value to a given stat. <br> | | Sets a value to a given stat. <br> | ||
Line 14: | Line 12: | ||
For example "ExpWarlockDown" is restricted to scripts in any subdirectory of <tt>"a3\Missions_F_Exp\Campaign\Missions\"</tt> | For example "ExpWarlockDown" is restricted to scripts in any subdirectory of <tt>"a3\Missions_F_Exp\Campaign\Missions\"</tt> | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| [[setStatValue]] [name, value] |SYNTAX= | | [[setStatValue]] [name, value] |SYNTAX= | ||
Line 25: | Line 22: | ||
| [[Boolean]] |RETURNVALUE= | | [[Boolean]] |RETURNVALUE= | ||
|x1= <code>[[setStatValue]] ["ExpWarlockDown", 1]; {{cc|Unlocks the "Warlock Down" Steam achivement}}</code> |EXAMPLE1= | |x1= <code>[[setStatValue]] ["ExpWarlockDown", 1]; {{cc|Unlocks the "Warlock Down" Steam achivement}}</code> |EXAMPLE1= | ||
| [[getStatValue]], [[Arma 3 Stat Names]] |SEEALSO= | | [[getStatValue]], [[Arma 3 Stat Names]] |SEEALSO= |
Revision as of 02:29, 17 January 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, 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