OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Serial Killer on 16 Aug 2005, 17:40:19
-
Is it possible to add a face, included with the mission file, to an unit? If yes, how? If no,... crap.
-
yes and no :P
yes you can add a custom face, but no, it can't just go along with the mission file. it requires you to create your own addon. before you sigh and mutter into your hands, i should inform you that it's relatively straightforward.
create your face files per the usual template, i.e. 128 x 128 pixels. you can leave them as jpg files, no need to convert to paa. stick them all in a folder and call the folder something.
then open up notepad and copy/paste the code in the attached file, changing the text to your filenames. save that file as config.cpp, stick it into the folder with all the faces, and then run amalfi's pbo maker (http://www.ofpec.com/editors/resource_view.php?id=357), select the folder and run it.
voila. one pbo addon, which when added to the addons directory allows you to use the names you defined in the config file in the usual way, i.e. unit_name setface "name_of_face".
any questions?
-
Thanks. This should help me a lot.
-
Interesting. I dont think Ill go and make my own face, but just incase i do;
How do you have to get the pic? I mean, do u have to take the front and sides of sommeones head (with a camera) and then edit into one 128x128 jpg? How do you get a photo that contains a whole face?
-
Interesting. I dont think Ill go and make my own face, but just incase i do;
How do you have to get the pic? I mean, do u have to take the front and sides of sommeones head (with a camera) and then edit into one 128x128 jpg? How do you get a photo that contains a whole face?
The Avon lady's OFP FAQ. (http://www.theavonlady.org/theofpfaq/) Search for 'face'.