SetProjectileRefSource

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets the reference that is the "source" of the calling live-projectile - that is, who/what fired it. Whoever is hit by the projectile will consider that reference as his attacker.

Syntax

[help]
reference.SetProjectileRefSource newSource:ref

Example

liveProjRef.SetProjectileRefSource someObjectRef 

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