Unit Identity
20 scripting commands. Also as Markdown for agents.
- deleteIdentityDeletes an identity created with saveIdentity from the campaign's progress file.
- faceReturns the face class of a person as it is written in 'CfgFaces'.
- hasCustomFaceGet whether or not a player has an available custom face file.
- loadIdentityLoads person's identity from Objects.sav file in campaign directory (from entry name).
- lockIdentityLocks the identity of a person. This will disable default identity.
- nameWhen argument is Object, the command returns the name given to a unit using the setIdentity instruction or selected randomly by the game engine if…
- pitchReturns the pitch of a persons voice.
- rankReturns the rank of the given unit. Rank can be one of the following: - `"PRIVATE"` - `"CORPORAL"` - `"SERGEANT"` - `"LIEUTENANT"` - `"CAPTAIN"` -…
- rankIdReturn the rank of the given unit for comparison.
- saveIdentitySaves units's identity to Objects.sav file in campaign directory as entry name.
- setFaceSet 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'…
- setIdentitySets 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…
- setMimicSets person's facial expression. To set it back to default, use "".
- setNameSets the name of a location or a person (person only in single player).
- setNameSoundSets 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…
- setPitchSets the pitch of a persons voice.
- setRankSets rank of given unit.
- setSpeakerSets the speaker of a person.
- setUnitRankSets rank of given unit.
- speakerReturns the speaker class name of a unit.