setFace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
 
(63 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
|version2= 1.00


|arg= global |= Arguments in MP
|game3= arma1
|version3= 1.00


|eff= local |= Effects in MP
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| Set person's face. |= Description
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| person '''setFace''' face |= Syntax
|game6= tkoh
|version6= 1.00


|p1= person: [[Object]] |= Parameter 1
|game7= arma3
|version7= 0.50


|p2= face: [[String]] |= Parameter 2
|arg= global


| [[Nothing]] |= Return value
|eff= local
____________________________________________________________________________________________
 
|x1= <pre>soldier1 setFace "face10"</pre> |= Example 1
____________________________________________________________________________________________


| |= See also
|gr1= Unit Identity


|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]]
}}
}}


<h3 style="display:none">Notes</h3>
|s1= person [[setFace]] face
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on unknown</dd>
|p1= person: [[Object]]
<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.ciahome.net/~web7_balschoiw/Facetutorial.rar All Armed Assault 1.08 faces plus tutorial], [http://www.ciahome.net/~web7_balschoiw/ArmaAlbum/index.html Online gallery of 1.08 Armed Assault faces]
</dd>


<dd class="notedate">Posted on January 19, 2010 - 15:22 (CEST)</dd>
|p2= face: [[String]]
<dt class="note">'''[[User:Lou Montana|Lou Montana]]'''</dt>
<dd class="note">a full list of Arma 2 faces can be found here : http://www.armatechsquad.com/ArmA2Class/Faces/</dd>


<dd class="notedate">Posted on December 2, 2010 - 16:46 (CEST)</dd>
|r1= [[Nothing]]
<dt class="note">'''[[User:kevb0|kevb0]]'''</dt>
<dd class="note">For a full list of VBS2 faces and classnames, see this page: http://resources.bisimulations.com/contentnew/people/faces/</dd>


<!-- Note Section END -->
|x1= <sqf>soldier1 setFace "WhiteHead_02";</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|x2= Set persistent face for a unit in multiplayer:
[[Category:Scripting Commands|SETFACE]]
<sqf>this setFace "AsianHead_A3_02"; // in the init field if the unit already exists in Eden Editor</sqf>
[[Category:Scripting Commands OFP 1.96|SETFACE]]
<sqf>if (isServer) then { [_unit, "AsianHead_A3_02"] remoteExec ["setFace", 0, _unit] }; // if the unit is created later in the game</sqf>
[[Category:Scripting Commands OFP 1.46|SETFACE]]
 
[[Category:Scripting Commands ArmA|SETFACE]]
|seealso= [[face]] [[setIdentity]] [[setSpeaker]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands VBS2|{{uc:{{PAGENAME}}}}]]

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