IsLimbGone

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Test to see if an actor has had a particular limb dismembered. It is called on a reference and takes one parameter which is the limb to check for, and one optional parameter to check several limbs at once.

Syntax

[help]
(0, 1:int) [ActorRefID].IsLimbGone LimbIndex:int LimbIndex:int

Example

BuddyRef.IsLimbGone 13    // Tests if BuddyRef is missing his head (or brain, specifically).

BuddyRef.IsLimbGone 0 10    // Tests if BuddyRef is missing any limb from index 0 to 10.

Notes

  • The body locations and corresponding numbers (taken from GetHitLocation) are:
Body Part Return Value
None -1
Torso 0
Head 1 1
Head 2 2
Left Arm 1 3
Left Arm 2 4
Right Arm 1 5
Right Arm 2 6
Left Leg 1 7
Left Leg 2 8
Left Leg 3 9
Right Leg 1 10
Right Leg 2 11
Right Leg 3 12
Brain 13

See Also