setFace

From Bohemia Interactive Community
Revision as of 05:45, 19 March 2023 by Lou Montana (talk | contribs) (Some wiki formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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