GetProjectileRefDamage
Revision as of 19:23, 7 June 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Returns the <i>base damage</i> that will be inflicted by the calling live-projectile, upon impact. By default, this equals the base damag...")
< [[::Category:Functions|Category:Functions]]
A function added by the JIP NVSE Plugin.
Description
Returns 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
(damage:float) reference.GetProjectileRefDamage
Example
set fDamage to liveProjRef.GetProjectileRefDamage
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