[Command] setRaceGenerated

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post 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
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply