setStatValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|PARAMETER1= |p3=" to "|PARAMETER2= |p3=") |
Lou Montana (talk | contribs) (Fix Category:Pages using duplicate arguments in template calls and fix Arma 3 Stat Names link) |
||
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: [[ | 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 "a3\Missions_F_Exp\Campaign\Missions\" | 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= | ||
|p1= [name, value]: [[Array]] |PARAMETER1= | |p1= [name, value]: [[Array]] |PARAMETER1= | ||
|p2= name: [[String]] |PARAMETER2= | |p2= name: [[String]] |PARAMETER2= | ||
|p3= value: [[Number]] | | |p3= value: [[Number]] |PARAMETER3= | ||
| [[Boolean]] |RETURNVALUE= | | [[Boolean]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>setStatValue ["ExpWarlockDown", 1]; | |x1= <code>[[setStatValue]] ["ExpWarlockDown", 1]; {{cc|Unlocks the "Warlock Down" Steam achivement}}</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[getStatValue]] |SEEALSO= | | [[getStatValue]], [[Arma 3 Stat Names]] |SEEALSO= | ||
}} | }} | ||
Line 39: | Line 39: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
Revision as of 00:37, 1 February 2020
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:
- 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:
- 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