GetHitWeapon

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 the base Weapon form (if any) with which the current hit was struck.

Syntax

[help]
(weapon:ref) reference.GetHitWeapon

Example

set rWeapon to targetRef.GetHitWeapon 

See Also