Difference between revisions of "SetProjectileSpeed - PO3 SKSEFunctions"

From the CreationKit Wiki
Jump to navigation Jump to search
 
Line 33: Line 33:


== See Also ==
== See Also ==
*[[GetProjectileSPeed - PO3_SKSEFunctions]]
*[[GetProjectileSPeed - PO3_SKSEFunctions|GetProjectileSpeed - PO3_SKSEFunctions]]

Latest revision as of 12:16, 20 April 2024

SKSE Member of: PO3_SKSEFunctions

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

Syntax[edit | edit source]

Function SetProjectileSpeed(Projectile akProjectile, float afSpeed) global native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None

Examples[edit | edit source]

; 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)

Notes[edit | edit source]

  • This function changes the speed of the projectile's form and not its specific instance.
    • This means the above script will apply its changes to all instances of iron and daedric arrows, and not a specific one.

See Also[edit | edit source]