Difference between revisions of "GetHitLocation"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Quetzilla
(→‎Notes: info availability?)
imported>Cipscis
m (→‎Notes: Added note about Object Effect/Crit Effect functionality)
Line 30: Line 30:
**RIGHT_LEG_3 = 12
**RIGHT_LEG_3 = 12
**BRAIN      = 13
**BRAIN      = 13
*GetHitLocation won't work if used in a weapon's Object Effect, but will work if used in the weapon's Crit Effect.


=='''See Also'''==
=='''See Also'''==

Revision as of 18:06, 22 December 2008

Description

GetHitLocation Returns the hit location (of the most recent hit?).

Syntax

[ActorREF.]GetHitLocation

Examples

if BuddyRef.GetHitLocation == 0

This would determine if Buddy got hit in the torso.

Notes

  • Possibly this information is available in the OnHit and OnHitWith script blocks. See GetLastHitCritical.
  • The body locations and corresponding numbers 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
  • GetHitLocation won't work if used in a weapon's Object Effect, but will work if used in the weapon's Crit Effect.

See Also

Reference

None provided.