Arma 3 Scripting

Command in System

setStatValue

Also available as Markdown and JSON, or read the original wiki page.

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\"

Syntax

setStatValue [name, value]

Parameters:

Returns: Boolean

Examples

Example 1

setStatValue ["ExpWarlockDown", 1]; // Unlocks the "Warlock Down" Steam achivement

See also

getStatValue · Arma 3: Stat Names