setStatValue: Difference between revisions
Jump to navigation
Jump to search
(Added example) |
(Added Link to StatNames list) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Sets a value to a given stat. |= Description | | Sets a value to a given stat. <br> | ||
A list of possible StatNames can be found here: [[StatNames]]|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''setStatValue''' [StatName, Value] |= Syntax | | '''setStatValue''' [StatName], Value] |= Syntax | ||
|p1= StatName: [[String]] |= Parameter 1 | |p1= [[StatNames|StatName]]: [[String]] |= Parameter 1 | ||
|p2= Value: [[Number]] |= Parameter 1 | |p2= Value: [[Number]] |= Parameter 1 | ||
Revision as of 21:41, 13 July 2016
Description
- Description:
- Sets a value to a given stat.
A list of possible StatNames can be found here: StatNames - Groups:
- Uncategorised
Syntax
- Syntax:
- setStatValue [StatName], Value]
- Parameters:
- StatName: String
- Value: Number
- Return Value:
- Boolean
Examples
- Example 1:
setStatValue ["ExpWarlockDown", 1]; //Unlocks the "Warlock Down" Steam achivement
Additional Information
- See also:
- See also needed
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