SetRace - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Change actors race and reload his art.

Syntax[edit | edit source]

Function SetRace(Race akRace = None) native

Parameters[edit | edit source]

  • akRace: The actors new race.
    • Default: None - The default will set the actors race back to the original race.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Set the fan's race to elf
AnnoyingFan.SetRace(ElfRace)

Notes[edit | edit source]

This function should only be used on actors that are alive.

This function should only be used on unique actors because the race is changed on the base actor data.

See Also[edit | edit source]