GetHitAttacker

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 actor reference (if any) by which the current hit was struck.

Syntax

[help]
(attacker:ref) reference.GetHitAttacker

Example

set rAttacker to targetRef.GetHitAttacker 

See Also