SetProjectileRefSpeedMult

From the Fallout3 GECK Wiki
Revision as of 18:27, 7 June 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Sets the <i>speed multiplier</i> of the calling live-projectile. The effective speed is equal to the <i>base speed</i> (as defined in the...")
(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 speed multiplier of the calling live-projectile. The effective speed is equal to the base speed (as defined in the projectile's base-form) x speed multiplier.

Syntax

[help]
(speedMult:float) reference.SetProjectileRefSpeedMult newMult:float

Example

liveProjRef.SetProjectileRefSpeedMult 0.75

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