---
name: "setIdentity"
type: command
status: ok
groups: ["Unit Identity"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setIdentity
revid: 369141
updated: 2024-09-03T10:34:36Z
---

# setIdentity

*Command · Unit Identity · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: arguments **global** · effect **local**

## Description

Sets identity of a person. The identities could be defined in a custom config in [Description.ext](../topics/Description.ext.md#cfgidentities) or in the main config. For a list of available main config values see CfgIdentities.

This command is an aggregate of the following commands: [setName](../commands/setName.md), [setFace](../commands/setFace.md), [setSpeaker](../commands/setSpeaker.md), [setNameSound](../commands/setNameSound.md), [setPitch](../commands/setPitch.md), only the values are loaded from the given config. It also includes value for glasses for which currently there is no direct command, instead there is an inventory command [addGoggles](../commands/addGoggles.md).

## Syntax

```sqf
person setIdentity identity
```

**Parameters:**

- `person`: [Object](../topics/Object.md) - unit to which the identity will be applied
- `identity`: [String](../topics/String.md) - name of the subclass in CfgIdentities

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

## Examples

### Example 1

```sqf
_soldier1 setIdentity "MyLittleSoldier";
```

### Example 2

Clone factory in MP:

```sqf
for "_i" from 1 to 10 do
{
    _bob = group player createUnit [typeOf player, position player, [], 0, "none"];
    [_bob, "MyLittleSoldier"] remoteExec ["setIdentity", 0, _bob];
};
```

## See also

[setFace](../commands/setFace.md) · [setName](../commands/setName.md) · [setNameSound](../commands/setNameSound.md) · [setSpeaker](../commands/setSpeaker.md) · [setPitch](../commands/setPitch.md) · [addGoggles](../commands/addGoggles.md) · [loadIdentity](../commands/loadIdentity.md) · [lockIdentity](../commands/lockIdentity.md) · [Arma 3: Event Handlers](../topics/Event_Handlers.md) · [hasCustomFace](../commands/hasCustomFace.md)

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