Difference between revisions of "GetHitLocation"
Jump to navigation
Jump to search
imported>Cipscis (→Notes: Using GetHitLocation in a GameMode block) |
imported>Qazaaq (→Notes: adding Hand/Weapon as retrnval 14, and list -> table) |
||
Line 15: | Line 15: | ||
*Possibly this information is available in the [[OnHit]] and [[OnHitWith]] script blocks. See [[GetLastHitCritical]]. | *Possibly this information is available in the [[OnHit]] and [[OnHitWith]] script blocks. See [[GetLastHitCritical]]. | ||
*The body locations and corresponding numbers are: | *The body locations and corresponding numbers are: | ||
<dl><dd> <!-- HTML indentation for the table --> | |||
{| | |||
! 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 | |||
|- | |||
| Hand or Weapon | |||
| 14 | |||
|} | |||
</dl> <!-- closing the HTML indentation of the table --> | |||
*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. | *GetHitLocation will only return the correct value in a [[GameMode]] block in the frame that the reference is killed. |
Revision as of 05:50, 15 February 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:
-
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 Hand or Weapon 14
- 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.