OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: runner111 on 26 Sep 2006, 06:09:08

Title: how to add new face?
Post by: runner111 on 26 Sep 2006, 06:09:08
Sorry, my english is not good. "face" means : smile, angry,sadness action. I know OFP has some basic face, can I add new one?
If I can, how should I do?
Title: Re: how to add new face?
Post by: bedges on 26 Sep 2006, 09:07:17
if in doubt about a command, take a look at the comref (http://www.ofpec.com/COMREF/index.php?action=list&letter=s#setMimic).
Title: Re: how to add new face?
Post by: nominesine on 26 Sep 2006, 09:57:41
If you want to change the actual face (eyes, nose, mouth, chin, etc) you use setFace command
Code: [Select]
myUnit setface "face15"
Thats's general Guba's face.


If you want to change the expression (smiling, angry, confused, etc) you use setMimic command

Code: [Select]
myUnit setMimic "smile"Should make the unit smile, but I'm nor sure how long the smile lasts since I never actually used the mimic command.
Title: Re: how to add new face?
Post by: runner111 on 26 Sep 2006, 11:14:13
Can I add new mimic?
Title: Re: how to add new face?
Post by: nominesine on 26 Sep 2006, 11:52:49
Can I add new mimic?

Not without altering the core files in the game engine, and that's far beyond my knowledge of Flashpoint editing.
Title: Re: how to add new face?
Post by: JasonO on 28 Sep 2006, 17:44:33
You could make an animation for an addon, but thats very advanced and isnt really what you want.
Title: Re: how to add new face?
Post by: bedges on 28 Sep 2006, 20:42:44
a way of getting round it would be to set the mimic to normal and use your own face texture. tutorial here (http://www.ofpec.com/forum/index.php?topic=28229.0).