GetHitLocation

From the Fallout3 GECK Wiki
Revision as of 22:46, 16 January 2009 by imported>Cipscis (→‎Notes: Using GetHitLocation in a GameMode block)
Jump to navigation Jump to search

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.
  • GetHitLocation will only return the correct value in a GameMode block in the frame that the reference is killed.

See Also

Reference

None provided.