# Unit Identity (scripting commands)

- [deleteIdentity](../../commands/deleteIdentity.md): Deletes an identity created with saveIdentity from the campaign's progress file.
- [face](../../commands/face.md): Returns the face class of a person as it is written in 'CfgFaces'.
- [hasCustomFace](../../commands/hasCustomFace.md): Get whether or not a player has an available custom face file.
- [loadIdentity](../../commands/loadIdentity.md): Loads person's identity from Objects.sav file in campaign directory (from entry name).
- [lockIdentity](../../commands/lockIdentity.md): Locks the identity of a person. This will disable default identity.
- [name](../../commands/name.md): When argument is Object, the command returns the name given to a unit using the setIdentity instruction or selected randomly by the game engine if setIdentity has not been used on the unit.
- [pitch](../../commands/pitch.md): Returns the pitch of a persons voice.
- [rank](../../commands/rank.md): Returns the rank of the given unit. Rank can be one of the following: - `"PRIVATE"` - `"CORPORAL"` - `"SERGEANT"` - `"LIEUTENANT"` - `"CAPTAIN"` - `"MAJOR"` - `"COLONEL"`
- [rankId](../../commands/rankId.md): Return the rank of the given unit for comparison.
- [saveIdentity](../../commands/saveIdentity.md): Saves units's identity to Objects.sav file in campaign directory as entry name.
- [setFace](../../commands/setFace.md): Set person's face. For a list of available faces, check CfgIdentities or `CfgFaces` config. If the face is non-existent, the face is set to 'Default' and the error is logged in the .rpt file.
- [setIdentity](../../commands/setIdentity.md): Sets identity of a person. The identities could be defined in a custom config in Description.ext or in the main config. For a list of available main config values see CfgIdentities.
- [setMimic](../../commands/setMimic.md): Sets person's facial expression. To set it back to default, use "".
- [setName](../../commands/setName.md): Sets the name of a location or a person (person only in single player).
- [setNameSound](../../commands/setNameSound.md): Sets the nameSound of a person. By default, when giving orders, the units are addressed by their number. When nameSound is set, it will be used instead to address the unit.
- [setPitch](../../commands/setPitch.md): Sets the pitch of a persons voice.
- [setRank](../../commands/setRank.md): Sets rank of given unit.
- [setSpeaker](../../commands/setSpeaker.md): Sets the speaker of a person.
- [setUnitRank](../../commands/setUnitRank.md): Sets rank of given unit.
- [speaker](../../commands/speaker.md): Returns the speaker class name of a unit.
