setFace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Replaced <code> with <sqf>)
Line 39: Line 39:


|x1= <sqf>soldier1 setFace "WhiteHead_02"</sqf>
|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 MP<sqf>if (isServer) then {[_unit, "AsianHead_A3_02"] remoteExec ["setFace", 0, _unit]};</sqf>


|seealso= [[face]] [[setIdentity]] [[setSpeaker]]
|seealso= [[face]] [[setIdentity]] [[setSpeaker]]

Revision as of 16:49, 14 May 2022

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 MP
if (isServer) then {[_unit, "AsianHead_A3_02"] remoteExec ["setFace", 0, _unit]};

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
Posted on unknown
unknown
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