GetHitExtendedFlag

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

When called from a OnHit/OnHitWith script block (or the corresponding NVSE event handlers), or from a ScriptEffectStart block in an Ammo form Impact Script, will return whether the specified extended flag is set for the current hit.

Syntax

[help]
(flagSet:0/1) reference.GetHitExtendedFlag flagID:int{0-8}

Extended Flag IDs

0	Target Was Blocking
1	Critical Hit
2	Fatal Hit (target killed, or knocked out if Essential)
3	Limb Dismembered
4	Limb Exploded
5	Limb Crippled
6	Target's Weapon Broke
7	Sneak Attack
8	Explosion Hit

Example

set bFatalHit to targetRef.GetHitExtendedFlag 2 

See Also