GetProjectileRefDistanceTraveled
From GECK
A function added by the JIP NVSE Plugin.
Description
Returns the total distance traveled by the calling live-projectile. This will return the correct value only for missile-type projectiles.
Syntax
(distance:float) reference.GetProjectileRefDistanceTraveled
Example
set fDistance to liveProjRef.GetProjectileRefDistanceTraveled
Finding Live-Projectile References
The only way to get a live-projectile reference is by "ref-walking" - that is, walking through projectile references using the GetFirstRef and GetNextRef functions.
Example:
set rProj to GetFirstRef 51 3 while rProj ; Do something set rProj to GetNextRef loop