setStatValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - "\[\[Arma 3 ([^ACHJKLMTZ|])([^|]+)\]\]" to "Arma 3: $1$2") |
||
Line 8: | Line 8: | ||
| Sets a value to a given stat. <br> | | Sets a value to a given stat. <br> | ||
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 <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> | ||
Line 24: | Line 24: | ||
|x1= <code>[[setStatValue]] ["ExpWarlockDown", 1]; {{cc|Unlocks the "Warlock Down" Steam achivement}}</code> | |x1= <code>[[setStatValue]] ["ExpWarlockDown", 1]; {{cc|Unlocks the "Warlock Down" Steam achivement}}</code> | ||
|seealso= [[getStatValue]], [[Arma 3 Stat Names]] | |seealso= [[getStatValue]], [[Arma 3: Stat Names]] | ||
}} | }} |
Revision as of 19:30, 7 April 2021
Description
- Description:
- Description needed
- Groups:
- System
Syntax
- Syntax:
- Syntax needed
- Parameters:
- [name, value]: Array
- name: String
- value: Number
- Return Value:
- Return value needed
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