setIdentity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "‎" to "")
 
(68 intermediate revisions by 8 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= <pre>_soldier1 setIdentity "John_Doe"</pre> |= Example 1
____________________________________________________________________________________________


| |= See also
|game7= arma3
|version7= 0.50


}}
|arg= global


<h3 style="display:none">Notes</h3>
|eff= local
<dl class="command_description">
<!-- Note Section BEGIN -->


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


The definition format in the [[Description.ext]] file is:
|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]].
<br><br>
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]].


<pre>class CfgIdentities
|s1= person [[setIdentity]] identity
{
    class John_Doe
    {
        name = "John Bartholemew Doe";
        face = "Face20";
        glasses = "None";
        speaker = "Dan";
        pitch = 1.1;
    };
};</pre>


In '''Operation Flashpoint''',
|p1= person: [[Object]] - unit to which the identity will be applied
|p2= identity: [[String]] - name of the subclass in [[CfgIdentities]]


Name can be any string.
|r1= [[Nothing]]


Face can take any of the following values:
|x1= <sqf>_soldier1 setIdentity "MyLittleSoldier";</sqf>


Male: "Face1"... to "Face52", "Face99" & "FaceR01" to "Face R04"
|x2= Clone factory in MP:
<sqf>for "_i" from 1 to 10 do
{
_bob = group player createUnit [typeOf player, position player, [], 0, "none"];
[_bob, "MyLittleSoldier"] remoteExec ["setIdentity", 0, _bob];
};</sqf>


Female: "Eva", "Kamila", "Lada", "Lucie", "Marketa" & "Nada"
|seealso= [[setFace]] [[setName]] [[setNameSound]] [[setSpeaker]] [[setPitch]] [[addGoggles]] [[loadIdentity]] [[lockIdentity]] [[Arma_3:_Event_Handlers#HandleIdentity | HandleIdentity EH]]
 
}}
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.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