IsLimbGone

From GECK

A function included in the GECK version 1.1.0.36.

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.

Syntax

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

Example

BuddyRef.IsLimbGone 13

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

Notes

  • The body locations and corresponding numbers (taken from GetHitLocation) are:
    • 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

Personal tools