setFace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Removed old notes and broken links)
m (Text replacement - "|= Game name" to "|Game name=")
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| ofp |= Game name
| ofp |Game name=


|1.00|= Game version
|1.00|Game version=


|arg= global |= Arguments in MP
|arg= global |Multiplayer Arguments=


|eff= local |= Effects in MP
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set person's face. For a list of available faces, check [[:Category:CfgIdentities]]. |= Description
| Set person's face. For a list of available faces, check [[:Category:CfgIdentities]]. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| person '''setFace''' face |= Syntax
| person '''setFace''' face |SYNTAX=


|p1= person: [[Object]] |= Parameter 1
|p1= person: [[Object]] |PARAMETER1=


|p2= face: [[String]] |= Parameter 2
|p2= face: [[String]] |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>soldier1 [[setFace]] "WhiteHead_02"</code> |= Example 1
|x1= <code>soldier1 [[setFace]] "WhiteHead_02"</code> |EXAMPLE1=
|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<code>[[if]] ([[isServer]]) [[then]] {[_unit, "AsianHead_A3_02"] [[remoteExec]] ["setFace", 0, _unit]};</code>|=
____________________________________________________________________________________________
____________________________________________________________________________________________


|[[face]], [[setIdentity]], [[setSpeaker]] |= See also
|[[face]], [[setIdentity]], [[setSpeaker]] |SEEALSO=


}}
}}

Revision as of 21:03, 1 September 2019

Hover & click on the images for description

Description

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

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

Additional Information

See also:
facesetIdentitysetSpeaker

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

Notes

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

Bottom Section