---
name: "activateKey"
type: command
status: ok
groups: ["Mission Information"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/activateKey
revid: 341303
updated: 2023-05-20T20:40:03Z
---

# activateKey

*Command · Mission Information · Arma 3 v0.50 · introduced in Operation Flashpoint: Elite v1.00*

## Description

Activates the given keyname for the current user profile. The keys are used to unlock missions or campaigns.
See `keys`, `keysLimit` and `doneKeys` in the [Description.ext#Mission Keys](../topics/Description.ext.md#mission-keys) chapter.

## Syntax

```sqf
activateKey keyname
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
activateKey "Mission04Key";
```

## See also

[deActivateKey](../commands/deActivateKey.md) · [isKeyActive](../commands/isKeyActive.md)

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