Difference between revisions of "SetRace - Actor"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Arthmoor (→Syntax: Added note that this can only be used on live NPCs.) |
||
Line 9: | Line 9: | ||
Function SetRace(Race akRace = None) native | Function SetRace(Race akRace = None) native | ||
</source> | </source> | ||
This command can only be used on living NPCs. | |||
== Parameters == | == Parameters == |
Latest revision as of 17:37, 11 March 2012
Member of: Actor Script
Change actors race and reload his art.
Syntax[edit | edit source]
Function SetRace(Race akRace = None) native
This command can only be used on living NPCs.
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)