GetProjectileRefWeapon

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Returns the weapon that fired the calling live-projectile.

Syntax

[help]
(weapon:ref) reference.GetProjectileRefWeapon

Example

set rSourceWeapon to liveProjRef.GetProjectileRefWeapon

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