setIdentity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETIDENTITY]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SETIDENTITY]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SETIDENTITY]]
[[Category:Scripting Commands ArmA|SETIDENTITY]]


| ofp |= Game name


<h2 style="color:#000066">'''''person'' setIdentity ''identity'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Set identity of person.
Identities are defined in [[description.ext]] of the mission or campaign. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| person '''setIdentity''' identity |= Syntax


'''person:''' [[Object]]
|p1= person: [[Object]] |= Parameter 1


'''identity:''' [[String]]
|p2= identity: [[String]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>soldier1 setIdentity "John_Doe"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Set '''identity''' of '''person'''.<br>
<h3 style="display:none">Notes</h3>
Identities are defined in [[Description.ext|description.ext]] of the mission or campaign.
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


soldier1 '''setIdentity''' "John_Doe"
The definition format in the [[description.ext]] file is: class CfgIdentities
 
{
 
class John_Doe
'''Comments:'''
{
 
name="John Bartholemew Doe";
The definition format in the [[Description.ext|description.ext]] file is:
face="Face20";
 
glasses="None";
class CfgIdentities<br>
speaker="Dan";
{<br>
pitch=1.1;
&nbsp;class John_Doe<br>
&nbsp;{<br>
&nbsp;&nbsp;name="John Bartholemew Doe";<br>
&nbsp;&nbsp;face="Face20";<br>
&nbsp;&nbsp;glasses="None";<br>
&nbsp;&nbsp;speaker="Dan";<br>
&nbsp;&nbsp;pitch=1.1;<br>
&nbsp;};<br>
};
};
 
}; Name can be any string
'''Name''' can be any string<br>
Face can take any of the following values:
'''Face''' can take any of the following values:<br>
Male: "Face1"... to "Face52", "Face99" & "FaceR01" to "Face R04"
Male: "Face1"... to "Face52", "Face99" & "FaceR01" to "Face R04"<br>
Female: "Eva", "Kamila", "Lada", "Lucie", "Marketa" & "Nada"
Female: "Eva", "Kamila", "Lada", "Lucie", "Marketa" & "Nada"<br>
Glasses can take the following values: "None", "Spectacles" & "Sunglasses"
'''Glasses''' can take the following values: "None", "Spectacles" & "Sunglasses"<br>
Speaker determines which voice is used and can take any of the following values:
'''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",
"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"
"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
'''Pitch''' sets the tone of voice. 1.0 for normal; < 1.0 for deep; >1.0 for high pitched
[[Category:Scripting Commands|SETIDENTITY]]
[[Category:Scripting Commands OFP 1.96|SETIDENTITY]]
[[Category:Scripting Commands OFP 1.46|SETIDENTITY]]
[[Category:Scripting Commands ArmA|SETIDENTITY]]

Revision as of 00:19, 2 August 2006

Hover & click on the images for description

Description

Description:
Set identity of person. Identities are defined in description.ext of the mission or campaign.
Groups:
Uncategorised

Syntax

Syntax:
person setIdentity identity
Parameters:
person: Object
identity: String
Return Value:
Nothing

Examples

Example 1:
soldier1 setIdentity "John_Doe"

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Old Notes (temporary):

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