setIdentity

From Bohemia Interactive Community
Revision as of 22:30, 31 May 2006 by Thobson (talk | contribs) (Added the list of valid options for Face, Glasses, Speaker etc.)
Jump to navigation Jump to search


person setIdentity identity


Operand types:

person: Object

identity: String

Type of returned value:

Nothing

Description:

Set identity of person.
Identities are defined in description.ext of the mission or campaign.


Example:

soldier1 setIdentity "John_Doe"


Comments:

The definition format in the description.ext file is:

class CfgIdentities
{
 class John_Doe
 {
  name="John Bartholemew Doe";
  face="Face20";
  glasses="None";
  speaker="Dan";
  pitch=1.1;
 };
};

Name can be any string
Face can take any of the following values:
Male: "Face1"... to "Face52", "Face99" & "FaceR01" to "Face R04"
Female: "Eva", "Kamila", "Lada", "Lucie", "Marketa" & "Nada"
Glasses can take the following values: "None", "Spectacles" & "Sunglasses"
Speaker determines which voice is used and can take any of the following values:
"Adam","Dan","George","Greg","John","Jonah","Marc","Patrick","Paul","Peter","Rich","Rob","Ted","Tom","Nikolai","Vitaliy","Sergey","Oleg",
"Ruslan","Aleksei","Andrei","Boris","Georgiy","Vadim","Vladimir","Ivan"
Pitch sets the tone of voice. 1.0 for normal; < 1.0 for deep; >1.0 for high pitched