Page 1 of 1

[Command] setRaceGenerated

Posted: Sun Nov 21, 2021 2:07 am
by Raddeck
setRaceGenerated(Player, false) or
setRaceGenerated(black)


USE:
To set the actor to a certain ethnic group.


PARAMETERS:
arab
asian
black
indian
latin
white


TYPE: Command, Reference
RETURNS: bool
THEME: Actor
COMPARE: isRace, getRace


EXAMPLE:

Code: Select all

For setting a specific ethnic group.
setRaceGenerated(black)
Actor = generatePersonTemporary()
While !Player.isInterestedIn(Actor)
    Actor = generatePersonTemporary()
Endwhile


For setting a random ethnic group.
setRaceGenerated(Player, false)
Actor = generatePersonTemporary()
While !Player.isInterestedIn(Actor)
    Actor = generatePersonTemporary()
Endwhile