Background for Skyrim SE
Member of the PO3_SKSEFunctions script
voidfunctionSetProjectileSpeed(ProjectileakProjectile, floatafSpeed)NativeGlobal

Description

Wiki Description

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


Caveats

CK Wiki - Notes

  • 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.

Parameters

ProjectileakProjectile

CK Wiki Description

The projectile whose speed is to be changed.

floatafSpeed

CK Wiki Description

The new value to assign the projectile.


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)

Auto-Generated Example

Projectile myProjectile__akProjectile
float myFloat__afSpeed

PO3_SKSEFunctions.SetProjectileSpeed(myProjectile__akProjectile, myFloat__afSpeed)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.