GetHitWeapon
From GECK
A function added by the JIP NVSE Plugin.
Contents
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
(weapon:ref) reference.GetHitWeapon
Example
set rWeapon to targetRef.GetHitWeapon