SetProjectileRefDamage

From the Fallout3 GECK Wiki
Revision as of 18:24, 7 June 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Sets the <i>base damage</i> that will be inflicted by the calling live-projectile, upon impact. By default, this equals the base damage o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

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