ChangeHeadPart - Actor

Member of: Actor Script

Change or add this HeadPart to the actor.

SyntaxEdit

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

ParametersEdit

  • 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 ValueEdit

None

ExamplesEdit

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


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

See AlsoEdit