setFace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
(36 intermediate revisions by 17 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|S]]
{{Command|Comments=
[[Category:Scripting Commands OFP 1.97|S]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|S]]
[[Category:Scripting Commands ArmA|S]]


back to [[Scripting_Reference#S|COMREF]]
| ofp |Game name=


<h2 style="color:#000066">'''''person'' setFace ''face'''''</h2>
|1.00|Game version=


|arg= global |Multiplayer Arguments=


'''Operand types:'''
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________


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


'''face:''' [[String]]
| person '''setFace''' face |SYNTAX=


'''Type of returned value:'''
|p1= person: [[Object]] |PARAMETER1=


[[Nothing]]
|p2= face: [[String]] |PARAMETER2=


'''Description:'''
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|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>|=
____________________________________________________________________________________________


Set '''person's face'''.
|[[face]], [[setIdentity]], [[setSpeaker]] |SEEALSO=


}}


'''Example:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


soldier1 '''setFace''' "face10"
<dd class="notedate">Posted on unknown
<dt class="note">unknown
<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]
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETFACE]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETFACE]]
[[Category:Scripting Commands OFP 1.46|SETFACE]]
[[Category:Scripting Commands ArmA|SETFACE]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 16:01, 6 April 2020

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