SetProjectileSpeed - PO3 SKSEFunctions

From the CreationKit Wiki
Revision as of 11:01, 20 April 2024 by CreedAngelus (talk | contribs) (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' PO3_SKSEFunctions Sets the speed of the projectile set in the first parameter. (This f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE Member of: PO3_SKSEFunctions

Sets the speed of the projectile set in the first parameter. (This function requires PowerOfThree's Papyrus Extender)

Syntax

Function SetProjectileSpeed(Projectile akProjectile, float afSpeed) global native

Parameters

  • akProjectile : The projectile whose speed is to be changed.
  • afSpeed: The new value to assign the projectile.

Return Value

None

Examples

; Make an iron arrow move extremely slowly, and a daedric arrow nearly hitscan.
projectile property ArrowDaedricProjectile auto
projectile property ArrowIronProjectile auto

PO3_SKSEFunctions.SetProjectileSpeed(ArrowIronProjectile, 1)
PO3_SKSEFunctions.SetProjectileSpeed(ArrowDaedricProjectile, 9999999)

See Also