ChangeHeadPart - Actor
Jump to navigation
Jump to search
Member of: Actor Script
Change or add this HeadPart to the actor.
Syntax[edit | edit source]
Function ChangeHeadPart(headpart apHeadPart, bool abRemovePart = false, bool abRemoveExtraParts = false) native
Parameters[edit | edit source]
- 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[edit | edit source]
None
Examples[edit | edit source]
; Adds the RedScar part to the actor
ActorToChange.ChangeHeadPart(RedScar)
; Removes the RedScar part from the actor
ActorToChange.ChangeHeadPart(RedScar, True)