SetProjectileRefDamage

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets the base damage that will be inflicted by the calling live-projectile, upon impact. By default, this equals the base damage of the source weapon.

Syntax

[help]
(damage:float) reference.SetProjectileRefDamage newDamage:float

Example

liveProjRef.SetProjectileRefDamage 35 

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