Difference between revisions of "GetHitLocation"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Cipscis
m (→‎Notes: Added note about Object Effect/Crit Effect functionality)
imported>Cipscis
(→‎Notes: Using GetHitLocation in a GameMode block)
Line 31: Line 31:
**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.
*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'''==
=='''See Also'''==

Revision as of 22:46, 16 January 2009

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.