IsDismembered - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Check to see if a specific limb has been dismembered. If no body part is passed it this function will check to see if any limb has been dismembered.

Syntax[edit | edit source]

bool Function IsDismembered(string asBodyPart = "") native

Parameters[edit | edit source]

  • asBodyPart: The string used to define the body part.
    • Default: Empty string
    • The following values are acceptable:
      • Torso
      • Head1
      • Eye
      • LookAt
      • Fly Grab
      • Head2
      • LeftArm1
      • LeftArm2
      • RightArm1
      • RightArm2
      • LeftLeg1
      • LeftLeg2
      • LeftLeg3
      • RightLeg1
      • RightLeg2
      • RightLeg3
      • Brain
      • Weapon
      • Root
      • COM
      • Pelvis
      • Camera
      • OffsetRoot
      • Left Foot
      • Right Foot
      • Face Target Source

Return Value[edit | edit source]

True if the asBodyPart has been dismembered.

Examples[edit | edit source]

; Check to see if the actor's head has been dismembered.
if (ActorID.IsDismembered( "Head1" ))
  Debug.Trace("This actor's head has been cut off")
endIf


; Check to see if any of the actor's limbs have been dismembered.
if (ActorID.IsDismembered( ))
  Debug.Trace("This actor has at least one limb cut off")
endIf

See Also[edit | edit source]