GetProjectileRefLifeTime

Revision as of 19:20, 7 June 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Returns the real-time (in seconds) for which the calling live-projectile has existed. |name = GetProjectileRefLifeTime |returnType = li...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Returns the real-time (in seconds) for which the calling live-projectile has existed.

Syntax

(lifeTime:float) reference.GetProjectileRefLifeTime

Example

set fLifeTime to liveProjRef.GetProjectileRefLifeTime

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

See Also