setFace: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *ofp * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= ofp |version1= $1 |game2") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 29: | Line 29: | ||
|descr= Set person's face. For a list of available faces, check [[:Category:CfgIdentities]]. | |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]] | |||
}} | |||
|s1= | |s1= person [[setFace]] face | ||
|p1= person: [[Object]] | |p1= person: [[Object]] | ||
Line 36: | Line 43: | ||
|p2= face: [[String]] | |p2= face: [[String]] | ||
|r1=[[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>soldier1 setFace "WhiteHead_02";</sqf> | ||
|seealso= [[face]] | |x2= Set persistent face for a unit in multiplayer: | ||
<sqf>this setFace "AsianHead_A3_02"; // in the init field if the unit already exists in Eden Editor</sqf> | |||
<sqf>if (isServer) then { [_unit, "AsianHead_A3_02"] remoteExec ["setFace", 0, _unit] }; // if the unit is created later in the game</sqf> | |||
|seealso= [[face]] [[setIdentity]] [[setSpeaker]] | |||
}} | }} | ||
Latest revision as of 05:45, 19 March 2023
Description
- Description:
- Set person's face. For a list of available faces, check Category:CfgIdentities.
- Groups:
- Unit Identity
Syntax
Examples
- Example 1:
- soldier1 setFace "WhiteHead_02";
- Example 2:
- Set persistent face for a unit in multiplayer:
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Unit Identity
- Scripting Commands: Local Effect