setFace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Some wiki formatting)
 
(8 intermediate revisions by 2 users not shown)
Line 29: Line 29:


|descr= Set person's face. For a list of available faces, check [[:Category:CfgIdentities]].
|descr= Set person's face. For a list of available faces, check [[:Category:CfgIdentities]].
{{Columns|3|
* [[Operation Flashpoint: CfgIdentities#Faces|{{ofp}} faces]]
* [[ArmA: Armed Assault: CfgIdentities#Faces|{{arma1}} faces]]
* [[Arma 2: CfgIdentities#Faces|{{arma2}} faces]]
* [[Arma 3: CfgIdentities#Faces|{{arma3}} faces]]
* [[Take On Helicopters: CfgIdentities#Faces|{{tkoh}} faces]]
}}


|s1= person [[setFace]] face
|s1= person [[setFace]] face
Line 38: Line 45:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>soldier1 [[setFace]] "WhiteHead_02"</code>
|x1= <sqf>soldier1 setFace "WhiteHead_02";</sqf>
|x2= Set persistent face for a unit in MP<code>[[if]] ([[isServer]]) [[then]] {[_unit, "AsianHead_A3_02"] [[remoteExec]] ["setFace", 0, _unit]};</code>
 
|x2= Set persistent face for a unit in multiplayer:
<sqf>this setFace "AsianHead_A3_02"; // in the init field if the unit already exists in Eden Editor</sqf>
<sqf>if (isServer) then { [_unit, "AsianHead_A3_02"] remoteExec ["setFace", 0, _unit] }; // if the unit is created later in the game</sqf>


|seealso= [[face]] [[setIdentity]], [[setSpeaker]]
|seealso= [[face]] [[setIdentity]] [[setSpeaker]]
}}
}}
<dl class="command_description">
<dt><dt>
<dd class="notedate">Posted on unknown</dd>
<dt class="note">unknown</dt>
<dd class="note">
For '''Arma 2''' the face value is a string from ''Face01'' to ''Face107''. Camo faces are available as well, 6 per face.  For example the full set of class names for face value 77 would be:
  Face77, Face77_camo1, Face77_camo2, Face77_camo3, Face77_camo4, Face77_camo5 and Face77_camo6
----
* [http://www.ofpec.com/forum/index.php?topic=33444.0 a full list of Arma 2 faces]
</dl>

Latest revision as of 05:45, 19 March 2023

Hover & click on the images for description

Description

Description:
Set person's face. For a list of available faces, check Category:CfgIdentities.
Groups:
Unit Identity

Syntax

Syntax:
person setFace face
Parameters:
person: Object
face: String
Return Value:
Nothing

Examples

Example 1:
soldier1 setFace "WhiteHead_02";
Example 2:
Set persistent face for a unit in multiplayer:
this setFace "AsianHead_A3_02"; // in the init field if the unit already exists in Eden Editor
if (isServer) then { [_unit, "AsianHead_A3_02"] remoteExec ["setFace", 0, _unit] }; // if the unit is created later in the game

Additional Information

See also:
face setIdentity setSpeaker

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