---
name: "setStatValue"
type: command
status: ok
groups: ["System"]
arma3_since: "1.18"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setStatValue
revid: 319644
updated: 2022-05-13T09:24:37Z
---

# setStatValue

*Command · System · Arma 3 v1.18*

## 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

```sqf
setStatValue [name, value]
```

**Parameters:**

- `name`: [String](../topics/String.md)
- `value`: [Number](../topics/Number.md)

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

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

## See also

[getStatValue](../commands/getStatValue.md) · Arma 3: Stat Names

<sub>Source: [BI Community Wiki — setStatValue](https://community.bistudio.com/wiki/setStatValue) (revision 319644).</sub>
