View Full Version : setFace
How do I use ''setFace'' on specific AI characters? Um, sorry for the nooblet editing question.. but I've google'd the crap outta this and haven't found what I was lookin' for.
The 12th post on the front page of this forum included an example:
Adding Camo Faces to AllUnits (http://forums.bistudio.com/showthread.php?t=77062)
that was for *all* units to have Facepaint. I want to target a specific individual npc for this.
It's exactly the same, just for a single unit.
setFace (http://community.bistudio.com/wiki/setFace)
In your unit's init field put the following:
this setFace "face04_camo4";
The Face number is from Face01 to Face107 and the Camo number is from camo1 to camo6.
I tried that earlier... it didn't seem to work.. I'll try it again. (btw, thanks!)
It's exactly the same, just for a single unit.
setFace (http://community.bistudio.com/wiki/setFace)
In your unit's init field put the following:
this setFace "face04_camo4";
The Face number is from Face01 to Face107 and the Camo number is from camo1 to camo6.
this command line: this setFace "face04_camo4";
Does not work. Does anyone know a command line for a single NPC that allows me to customize thier face?
I assure you it works, when used properly. Where exactly are you putting this "command line"? The code goes in the unit's Initialization field.
Here are two Riflemen. The one the left has no Init field. The one on the right has this setFace "face04_camo4"; as it's Init field. When used correctly, this does work.
http://www.kylania.com/arma2/setFace.jpg
Note that this will not work for the "Force Recon" named units such as Cooper, Miles, O'hara, and the others but will for the generic Force Recon faces.
vinc3nt
Sep 29 2010, 12:33
I have the same problem - Only the player is effected by the setFace command, whilst all other units do not change face.
CaptainBravo
Sep 29 2010, 12:41
The command kylania gave is the right command. You just have to make sure the face you trying to add has the right name. What face name are you trying to add?
List of faces: http://www.armatechsquad.com/ArmA2Class/A2/Faces/#document
vinc3nt
Sep 29 2010, 13:28
The command kylania gave is the right command. You just have to make sure the face you trying to add has the right name. What face name are you trying to add?
List of faces: http://www.armatechsquad.com/ArmA2Class/A2/Faces/#document
'this setFace "Face10_EP1"', but it seems any face I use doesn't work (except for the player). I just don't know why :confused:
CarlGustaffa
Sep 29 2010, 20:04
I haven't tried it in OA but it worked fine for other AI units in singleplayer on Arma2. Note that the latest beta patch has some issues regarding "early init stuff" such as setIdentity.
Edit: Make that second latest beta patch. Apparently a new one out today :)
vinc3nt
Sep 29 2010, 21:10
I haven't tried it in OA but it worked fine for other AI units in singleplayer on Arma2. Note that the latest beta patch has some issues regarding "early init stuff" such as setIdentity.
Edit: Make that second latest beta patch. Apparently a new one out today :)
cool, I'll assume that's it. All I wanted is an old man in the British army :D
---------- Post added at 10:10 PM ---------- Previous post was at 09:56 PM ----------
the patch worked! I can now use setFace :yay:
http://img843.imageshack.us/img843/4760/oldman.png
cool, I'll assume that's it. All I wanted is an old man in the British army :D
---------- Post added at 10:10 PM ---------- Previous post was at 09:56 PM ----------
the patch worked! I can now use setFace :yay:
http://img843.imageshack.us/img843/4760/oldman.png (604 kB)
When I apply the exact same line as vinc3nt I don't get the same face. I only get the facial hair from the desired face with a random face. For example this Assistant gets this face below using
this setFace "face10_EP1";
http://img28.imageshack.us/img28/733/arma2oa2013012716363070.jpg
when it should be like this guys (notice the same facial hair).
http://img546.imageshack.us/img546/6349/face01ep1.jpg
I have the same issue with other AI's and never seems to work right. Just random faces that won't change much but the facial hair does.
Iv tried editing with my arma2oa.exe and the arma2oa.exe that's in the expansion/beta folder. I have the latest patch ARMA2_OA_Build_101245 and running no mods. How can I fix this issue? I'm guessing these maybe some of these lines don't work with some units? So far i have issues with some of the Civilians like the Functionary (black suit).
medusacadenza
Jan 28 2013, 15:08
setFace isn't working for me in OA either.
I have the latest patch. Tried it in normal OA and Beta patch.
2nd Ranger
Jan 28 2013, 21:35
OA faces like that old man use custom head models and cannot be used properly on default Arma 2 units.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.