setMimic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
(Fix description, example and clean comments)
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set person's facial expression. Following mimic values are recognized:
| Sets person's facial expression. To set it back to default, use "".
* '''"Default"'''
{{Feature arma3|Mimics must be written in all lower case letters.}} |DESCRIPTION=
* '''"Normal"'''
* '''"Smile"'''
* '''"Hurt"'''
* '''"Ironic"'''
* '''"Sad"'''
* '''"Cynic"'''
* '''"Surprised"'''
* '''"Agresive"'''
* '''"Angry"'''
 
Since Arma 2 OA 1.6*, these values are used :
* '''"neutral"'''
* '''"dead"'''
* '''"danger"'''
* '''"hurt"'''
* '''"aware"'''
* '''"safe"'''
* '''"combat"'''
|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| person '''setMimic''' mimic |SYNTAX=
| person [[setMimic]] mimic |SYNTAX=


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


|p2= mimic: [[String]]. as above  |PARAMETER2=
|p2= mimic: [[String]] - can be one of:
{{{!}}
! style="padding-right: 2em" {{!}} Before Arma 2 OA v1.6x !! style="font-size: small" {{!}} Since Arma 2 OA v1.6x
{{!}}-
{{!}} style="vertical-align: top" {{!}}
* "Default"
* "Normal"
* "Smile"
* "Hurt"
* "Ironic"
* "Sad"
* "Cynic"
* "Surprised"
* {{sic|"Agresive"}}
* "Angry"
{{!}} style="vertical-align: top" {{!}}
* "neutral"
* "dead"
* "danger"
* "hurt"
* "aware"
* "safe"
* "combat"
{{!}}} |PARAMETER2=


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_soldier1 setmimic "angry"</pre> |EXAMPLE1=
|x1= <code>_soldier1 [[setMimic]] "hurt";</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[setIdentity]], [[setFace]], [[setFaceAnimation]], [[enableMimics]], [[setRandomLip]]|SEEALSO=
| [[setIdentity]], [[setFace]], [[setFaceAnimation]], [[enableMimics]], [[setRandomLip]] |SEEALSO=
 
}}
}}


Line 53: Line 56:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dt class="note">'''[[User:The-architect|The-architect]]'''
<dd class="note">
To give the impression of hard faced guys going into a mission, use the setmimic "angry" command. I always have this on my guys to stop them grinning during a cutscene/mission.
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''
<dd class="note">
In '''OFP v1.96''', a character will keep any facial expression you set indefinately. Setmimic to "" to return soldier to automatic facial expressions.


<dd class="notedate">Posted on Jan 19, 2010 - 15:30 (CEST)
<dd class="notedate">Posted on Jan 19, 2010 - 15:30 (CEST)
<dt class="note">'''[[User:Lou Montana|Lou Montana]]'''
<dt class="note">[[User:Lou Montana|Lou Montana]]
<dd class="note">Not working in '''Arma 2 1.05'''.
<dd class="note">Not working in '''Arma 2 1.05'''.


<dd class="notedate">Posted on September 2, 2013
<dd class="notedate">Posted on September 2, 2013
<dt class="note">'''[[User:Killzone_Kid|Killzone_Kid]]'''
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]
<dd class="note">In Arma 3 the following face expressions work: "neutral","dead","danger","hurt","aware","safe","combat". Names must be written in all lower case letters. There is another grimace in config - "unconscious", which doesn't quite work.  
<dd class="note">There is another grimace in config - "unconscious", which doesn't quite work.  
 


<!-- Note Section END -->
<!-- Note Section END -->
Line 76: Line 69:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETMIMIC]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETMIMIC]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|SETMIMIC]]
[[Category:Scripting Commands ArmA|SETMIMIC]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 02:49, 2 February 2020

Hover & click on the images for description

Description

Description:
Sets person's facial expression. To set it back to default, use "".
Arma 3
Mimics must be written in all lower case letters.
Groups:
Uncategorised

Syntax

Syntax:
person setMimic mimic
Parameters:
person: Object
mimic: String - can be one of:
Before Arma 2 OA v1.6x Since Arma 2 OA v1.6x
  • "Default"
  • "Normal"
  • "Smile"
  • "Hurt"
  • "Ironic"
  • "Sad"
  • "Cynic"
  • "Surprised"
  • "Agresive"sic
  • "Angry"
  • "neutral"
  • "dead"
  • "danger"
  • "hurt"
  • "aware"
  • "safe"
  • "combat"
Return Value:
Nothing

Examples

Example 1:
_soldier1 setMimic "hurt";

Additional Information

See also:
setIdentitysetFacesetFaceAnimationenableMimicssetRandomLip

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 Jan 19, 2010 - 15:30 (CEST)
Lou Montana
Not working in Arma 2 1.05.
Posted on September 2, 2013
Killzone_Kid
There is another grimace in config - "unconscious", which doesn't quite work.

Bottom Section