SetRace - Actor

Revision as of 18:37, 11 March 2012 by imported>Arthmoor (→‎Syntax: Added note that this can only be used on live NPCs.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script

Change actors race and reload his art.

SyntaxEdit

Function SetRace(Race akRace = None) native

This command can only be used on living NPCs.

ParametersEdit

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

Return ValueEdit

None.

ExamplesEdit

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

See AlsoEdit