setStatValue

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.18
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.18

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 and missions in certain paths.
For example "ExpWarlockDown" is restricted to scripts in any subdirectory of "a3\Missions_F_Exp\Campaign\Missions\"

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

Multiplayer:
-
See also:
getStatValue

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section