Difference between revisions of "SetHair"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Created)
 
imported>Haama
(Fixed syntax)
Line 2: Line 2:


'''Syntax:'''
'''Syntax:'''
  (nothing) reference.SetHair hairStyle:ref npc:ref
  (nothing) ''reference''.SetHair hairStyle:ref ''npc:ref''


Sets the hair on one actor, including the player, to a hairstyle predefined in the CS.
Sets the hair on one actor, including the player, to a hairstyle predefined in the CS.

Revision as of 02:32, 25 November 2007

A command for Oblivion Script Extender

Syntax:

(nothing) reference.SetHair hairStyle:ref npc:ref

Sets the hair on one actor, including the player, to a hairstyle predefined in the CS.

Notes

  • Changes to an NPC are not saved in the savegame and will revert to their original upon loading the save game.
    • However, changes to the player will last beyond a savegame.
  • Changes to an NPC will not be visible until the actor is reloaded; calling disable followed by enable a frame later will force the NPC to reload, updating the eyes (and hair).
  • Changes to the player may not be visible until the game is reloaded.

See Also