setStatValue: Difference between revisions
m (Added related commands)  | 
				 (Note to restriction of certain Stats)  | 
				||
| 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: [[StatNames]]|= Description  | A list of possible StatNames can be found here: [[StatNames]]<br>  | ||
Its important to note that most Stats are restricted to scripts in certain paths.<br>  | |||
For Example "ExpWarlockDown" is restricted to scriptfiles in any subdirectory of "a3\Missions_F_Exp\Campaign\Missions\"  | |||
|= Description  | |||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
Revision as of 23:26, 13 July 2016
Description
- Description:
 - Sets a value to a given stat. 
A list of possible StatNames can be found here: StatNames
Its important to note that most Stats are restricted to scripts in certain paths.
For Example "ExpWarlockDown" is restricted to scriptfiles in any subdirectory of "a3\Missions_F_Exp\Campaign\Missions\" - 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:
 - getStatValue
 
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