OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mikeyfish90210 on 04 Mar 2005, 16:57:05

Title: Expressions
Post by: Mikeyfish90210 on 04 Mar 2005, 16:57:05
Is their a way of giving units different face expressions using scripts? particularly ones where you can turn them on for a certain amount of time and then go back to default expressions. :) thanks for any replies
Title: Re:Expressions
Post by: THobson on 04 Mar 2005, 17:58:41
Look at setMimic in the comref.  If you don't know where that is go to Edit dept/Online References/Commands.

Also you might want to have a look at Faces and Voices here:
http://www.ofpec.com/editors/list.php?show=pending&t=&setnumperpage=50 (http://www.ofpec.com/editors/list.php?show=pending&t=&setnumperpage=50)
Title: Re:Expressions
Post by: RujiK on 04 Mar 2005, 20:25:51
Just use setmimic, as Mikey said, but I'll tell you how to use it anyway.

unitname setmimic "Angry" or for the setting you can use Happy,smile,ironic,hurt,suprised.

Then when you want to put his mimic back to normal just put
unitname setmimic "Defualt".

That should work fine.
Title: Re:Expressions
Post by: bedges on 04 Mar 2005, 20:30:59
mhmm, so long as you spell it 'default' :P
Title: Re:Expressions
Post by: THobson on 04 Mar 2005, 21:18:23
Quote
Mikey
???

and shouldn't it be Normal not default (however you want to spell it)?
Title: Re:Expressions
Post by: bedges on 04 Mar 2005, 22:20:18
either will do, depending on your preference - 'normal' will set the expression to 'dull' and unchanging.  'default' appears to enable changing expressions depending on mood, tide, season and planetary conjunction.
Title: Re:Expressions
Post by: THobson on 04 Mar 2005, 22:52:56
Well I didn't know that.  I am now off to change some of my scripts
Title: Re:Expressions
Post by: bedges on 04 Mar 2005, 23:06:31
WHOA THERE! i could be full of shit on this one... i've just done a check and it seems only loons without any setmimic designated will change expressions. in the current test, both 'normal' and 'default' have the same effect, i.e only very veeery tiny movement at the corners of the mouths.
Title: Re:Expressions
Post by: THobson on 05 Mar 2005, 13:41:09
Well I have changed all my scripts to put everyone back to Default mimic.  It sound like it should be okay.
Title: Re:Expressions
Post by: Mikeyfish90210 on 08 Mar 2005, 20:47:14
well cheers anyway xxxxxxxxxxxxxx
Title: Re:Expressions
Post by: nominesine on 10 Mar 2005, 22:27:08
in the current test, both 'normal' and 'default' have the same effect, i.e only very veeery tiny movement at the corners of the mouths.

Wow... You really made a field study of this? Impressing. Hope you remember to study the loons in their natural environment. They can behave very different if you take them into a laboratory  ;D

P.S I'm not being sarcastic. I'm truly amazed what OFP makes us do with our free time sometimes. My wife said I was crazy when I spent an hour trying to figure out if I could make a loon change from running around a car in a clockwise to an anti clockwise direction last weekend by placing different objects near the vehicle.
Title: Re:Expressions
Post by: The-Architect on 11 Mar 2005, 09:13:57
I wondered how this thread could have ten replies. Some funny stuff here.
Anyway, from the command reference.

person setMimic mimic

Operand types:
person: Object
mimic: String
Type of returned value:
Nothing
Description:
Set mimic. Following values are recognized: "Default", "Normal", "Smile", "Hurt", "Ironic", "Sad", "Cynic", "Surprised", "Agresive", "Angry".

Example:
setMimic "Angry"