Get3DDistanceFromHitToNiNode

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar 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, returns the distance between hit location and a specified NiNode on a calling reference.

Syntax

[help]
(float) ref.Get3DDistanceFromHitToNiNode NiNode:string

Example

set fDistance to EasyPeteRef.Get3DDistanceFromHitToNiNode "Bip01 Pelvis" 

See Also