setIdentity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Added the list of valid options for Face, Glasses, Speaker etc.)
Line 44: Line 44:
&nbsp;};<br>
&nbsp;};<br>
};
};
'''Name''' can be any string<br>
'''Face''' can take any of the following values:<br>
Male: "Face1"... to "Face52", "Face99" & "FaceR01" to "Face R04"<br>
Female: "Eva", "Kamila", "Lada", "Lucie", "Marketa" & "Nada"<br>
'''Glasses''' can take the following values: "None", "Spectacles" & "Sunglasses"<br>
'''Speaker''' determines which voice is used and can take any of the following values:<br>
"Adam","Dan","George","Greg","John","Jonah","Marc","Patrick","Paul","Peter","Rich","Rob","Ted","Tom","Nikolai","Vitaliy","Sergey","Oleg",<br>
"Ruslan","Aleksei","Andrei","Boris","Georgiy","Vadim","Vladimir","Ivan"<br>
'''Pitch''' sets the tone of voice. 1.0 for normal; < 1.0 for deep; >1.0 for high pitched

Revision as of 22:30, 31 May 2006


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