LifePlay-Revival/Docs/Modding/Functions/randomizeFace.txt
2018-04-06 04:18:14 +07:00

10 lines
No EOL
542 B
Text

Actor.randomizeFace()
Randomize the actor's face and skin. Commonly called after blendpreset (which might change the gender which resets the actor to the default face and hair for that gender)
EXAMPLE:
// We want a male bodybuilder
Bodybuilder = generatePerson() // just so that we get the random stats etc, but this might generate a female
Bodybuilder.blendPreset(bodybuilder) // if the above is female, then this will reset face and hair to the default male face and hair
Actor.randomizeFace()
Actor.randomizeHairs()