PDA

View Full Version : Can a sim's appearance be changed to something specific with a BHAV?


shirohagan
18th Jul 2010, 12:52 AM
As far as I can tell, the only way to change a sim's appearance with an object BHAV is through the Vanity Table Dialog - mirrors and the Automated Cosmetic Surgeon both use this.

Is it possible to change to something specific, say apply full face makeup to appear as a mask? The closest I can find is to use a career outfit, as that can change costume, hair and the whole face. But it doesn't look like it can do anything else, like apply makeup or add accessories.

Has anyone any ideas about how to do this? It seems like the kind of thing that should be possible, but I can't find a function which'll do it.

shirohagan
29th Jul 2010, 08:37 PM
I've worked this one out by remembering that electrocution puts smudges on the sim's face. Looking at the electrocution BHAVs, they do a Run Tree by Name on "CT - Set Face Override". This references the "Face and Skin Overrides" text list which contains references to facial overlays.

Both the call tree and the text list can be imported from the PersonGlobals semi-global. Once I'd got those in my package, all I had to do was update the text list's group to 0xFFFFFFFF, leave its instance as 0x303A, put the family code of my facial overlay in the text list and call the tree as a normal local function with the index of the overlay in parameter zero. It worked so well for the facial overlay I tried some accessories but they didn't work at all. Considering it's a face override that's not entirely surprising.

One of these days I'm going to stop faffing about with proof-of-concepts and make a proper object.