ChangeHeadPart - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Change or add this HeadPart to the actor.

Syntax

Function ChangeHeadPart(headpart apHeadPart, bool abRemovePart = false, bool abRemoveExtraParts = false) native

Parameters

  • apHeadPart: The new object to add to the actor's head.
  • abRemovePart: If this is true the part will be removed instead of added.
    • Default: false
  • abRemoveExtraParts: If we are removing a part we can remove the extra parts too by setting this to true.
    • Default: false

Return Value

None

Examples

; Adds the RedScar part to the actor
ActorToChange.ChangeHeadPart(RedScar)


; Removes the RedScar part from the actor
ActorToChange.ChangeHeadPart(RedScar, True)

See Also