SetHair

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Sets the hair on the NPC BaseForm to a hairstyle predefined in the GECK. The change will not be apparent until the 3D reloads, which you can force using Update3D. Returns 1 on a successful change, 0 otherwise.

Syntax

[help]
(success:bool) NPCRefr.SetHair NewHair:form NPC:BaseForm 

Example

SunnyREF.SetHair HairBun
SunnyREF.Update3D

Notes

  • According to the OBSE docs for this function: "Changes alter the base actor and are not saved in the savegame unless called on the player... Changes do appear to be saved for the player, but may not be visible until the game is reloaded."

See Also