setIdentity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
m (Text replacement - "‎" to "")
 
(59 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


| Set identity of person.
|game3= arma1
Identities are defined in [[Description.ext]] of the mission or campaign. For a list of available faces, glasses and speakers check [[:Category:CfgIdentities]]. |= Description
|version3= 1.00
____________________________________________________________________________________________


| person '''setIdentity''' identity |= Syntax
|game4= arma2
|version4= 1.00


|p1= person: [[Object]] |= Parameter 1
|game5= arma2oa
|p2= identity: [[String]] |= Parameter 2
|version5= 1.50


| [[Nothing]] |= Return value
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00
 
|x1= <code>_soldier1 [[setIdentity]] "MyLittleSoldier";</code> |= Example 1
____________________________________________________________________________________________


| [[setFace]], [[setSpeaker]], [[loadIdentity]],[[lockIdentity]] |= See also
|game7= arma3
|version7= 0.50


}}
|arg= global
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on August 28, 2013
<dt class="note">'''[[User:kylania|kylania]]'''<dd class="note">
 
For ArmA3 the definition format in the [[Description.ext]] file is:
 
<pre>class CfgIdentities
{
    class MyLittleSoldier
    {
        name = "Givens";
        nameSound = "Givens";
        face="WhiteHead_06";
glasses="None";
speaker="Male05ENG";
pitch=1.1;
    };
};</pre>
 
'''nameSound''' can be any preset BIS recorded name value.  By default units will be called out in voice by their number.  By using nameSound you can call them out by name using the following values:
 
''Default:''
Armstrong
Nichols
Tanny
Frost
Lacey
Larkin
Kerry
Jackson
Miller
McKendrick
Levine
Reynolds
 
''BLUFOR:''
Adams
Bennett
Campbell
Dixon
Everett
Franklin
Givens
Hawkins
Lopez
Martinez
O'Connor
Ryan
Patterson
Sykes
Taylor
Walker
 
''OPFOR:''
Amin
Masood
Fahim
Habibi
Kushan
Jawadi
Nazari
Siddiqi
Takhtar
Wardak
Yousuf


''INDEPENDENT:''
|eff= local
Anthis
Costa
Dimitirou
Elias
Gekas
Kouris
Leventis
Markos
Nikas
Nicolo
Panas
Petros
Rosi
Samaras
Stavrou
Thanos
Vega


''CODE NAMES:''
|gr1= Unit Identity
Ghost
Stranger
Fox
Snake
Razer
Jester
Nomad
Viper
Korneedler


'''face''' can be any of the following:
|descr= Sets identity of a person. The identities could be defined in a custom config in [[Description.ext#CfgIdentities|Description.ext]] or in the main config. For a list of available main config values see [[CfgIdentities]].
AfricanHead_01
<br><br>
AfricanHead_02
This command is an aggregate of the following commands: [[setName]], [[setFace]], [[setSpeaker]], [[setNameSound]], [[setPitch]], only the values are loaded from the given config. It also includes value for glasses for which currently there is no direct command, instead there is an inventory command [[addGoggles]].
AfricanHead_03
AsianHead_A3_01
AsianHead_A3_02
AsianHead_A3_03
GreekHead_A3_01
GreekHead_A3_02
GreekHead_A3_03
GreekHead_A3_04
GreekHead_A3_05
GreekHead_A3_06
GreekHead_A3_07
GreekHead_A3_08
GreekHead_A3_09
PersianHead_A3_01
PersianHead_A3_02
PersianHead_A3_03
NATOHead_01
WhiteHead_02
WhiteHead_03
WhiteHead_04
WhiteHead_05
WhiteHead_06
WhiteHead_07
WhiteHead_08
WhiteHead_09
WhiteHead_10
WhiteHead_11
WhiteHead_12
WhiteHead_13
WhiteHead_14
WhiteHead_15


'''speaker''' can be any of the following:
|s1= person [[setIdentity]] identity
Male01ENG
Male01ENGB
Male01GRE
Male01PER
Male02ENG
Male02ENGB
Male02GRE
Male02PER
Male03ENG
Male03ENGB
Male03GRE
Male03PER
Male04ENG
Male04ENGB
Male04GRE
Male05ENG
Male06ENG
Male07ENG
Male08ENG
Male09ENG


In ArmA 3 1.04+ these settings can also be set individually without description.ext editing by using the following commands: [[setFace]], [[setName]], [[setNameSound]], [[setSpeaker]], [[setPitch]]
|p1= person: [[Object]] - unit to which the identity will be applied
|p2= identity: [[String]] - name of the subclass in [[CfgIdentities]]


<dd class="notedate">Posted on August 4, 2006 - 11:59
|r1= [[Nothing]]
<dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">''Notes from before the conversion:''


The definition format in the [[Description.ext]] file is:
|x1= <sqf>_soldier1 setIdentity "MyLittleSoldier";</sqf>


<pre>class CfgIdentities
|x2= Clone factory in MP:
<sqf>for "_i" from 1 to 10 do
{
{
    class John_Doe
_bob = group player createUnit [typeOf player, position player, [], 0, "none"];
    {
[_bob, "MyLittleSoldier"] remoteExec ["setIdentity", 0, _bob];
        name = "John Bartholemew Doe";
};</sqf>
        face = "Face20";
        glasses = "None";
        speaker = "Dan";
        pitch = 1.1;
    };
};</pre>


In '''Operation Flashpoint''',
|seealso= [[setFace]] [[setName]] [[setNameSound]] [[setSpeaker]] [[setPitch]] [[addGoggles]] [[loadIdentity]] [[lockIdentity]] [[Arma_3:_Event_Handlers#HandleIdentity | HandleIdentity EH]]
 
}}
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
 
 
<dd class="notedate">Posted on November 18, 2006 - 10:42
<dt class="note">'''[[User:Str|Str]]'''<dd class="note">Preview of all faces in Armed Assault can be found on [http://help.bigames.info/arma_faces/index.htm Czech Biki]
 
 
<dd class="notedate">Posted on May 10, 2008 - 14:43
<dt class="note">'''[[User:hellop|hellop]]'''<dd class="note">
Glasses and Female faces do not work as of Arma patch 1.12beta.
 
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETIDENTITY]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETIDENTITY]]
[[Category:Scripting Commands OFP 1.46|SETIDENTITY]]
[[Category:Scripting Commands ArmA|SETIDENTITY]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 12:54, 26 April 2023

Hover & click on the images for description

Description

Description:
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.

This command is an aggregate of the following commands: setName, setFace, setSpeaker, setNameSound, setPitch, only the values are loaded from the given config. It also includes value for glasses for which currently there is no direct command, instead there is an inventory command addGoggles.
Groups:
Unit Identity

Syntax

Syntax:
person setIdentity identity
Parameters:
person: Object - unit to which the identity will be applied
identity: String - name of the subclass in CfgIdentities
Return Value:
Nothing

Examples

Example 1:
_soldier1 setIdentity "MyLittleSoldier";
Example 2:
Clone factory in MP:
for "_i" from 1 to 10 do { _bob = group player createUnit [typeOf player, position player, [], 0, "none"]; [_bob, "MyLittleSoldier"] remoteExec ["setIdentity", 0, _bob]; };

Additional Information

See also:
setFace setName setNameSound setSpeaker setPitch addGoggles loadIdentity lockIdentity HandleIdentity EH

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