---
name: "unlockAchievement"
type: command
status: broken
groups: ["Broken Commands", "System"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/unlockAchievement
revid: 364204
updated: 2024-05-05T11:07:39Z
---

# unlockAchievement

*Command · Broken Commands, System · Arma 3 v0.50 · introduced in Arma 2 v1.00*

> [!WARNING]
> This command is listed as broken on the wiki.

## Description

Unlocks the given achievement. The achievements are listed in CfgAchievements, however none of the currently listed achievements is used in Arma 3, hence the command always returns [false](../commands/false.md).

> [!IMPORTANT]
> This command is obsolete and was used in the experimental (unreleased) Arma 2 Xbox 360 version as stated
> [here](https://forums.bohemia.net/forums/topic/187873-unlockachievment-command/?tab=comments#comment-2978436).

> [!NOTE]
> **Arma 3:** To unlock a Steam Achievement for Arma 3, see [setStatValue](../commands/setStatValue.md).

## Syntax

```sqf
unlockAchievement name
```

**Parameters:**

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

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if achievement was unlocked

## Examples

### Example 1

```sqf
_isUnlocked = unlockAchievement "Hunter";
```

## See also

[setStatValue](../commands/setStatValue.md)

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