Jump to content

Change arrow speed from list via script?


ZippyDSMlee

Recommended Posts

Anyway to setup a script that changes the speed of projectiles based on what is in a list?

 

Or just changes any/all projectile speeds without having to be item specific?

 

 

What I would like to do is run a script that looks at stuff in a list and applies a change of speed to it be it player or NPC.

 

Tho I assume changing the the individual items would be more efficient. ><

Link to comment
Share on other sites

I think maybe using SKSE. Possibly be something like the following.

 

Scriptname SomeScript Extends ReferenceAlias

FormList Property WeaponList Auto

Float Property SpeedAdjustment Auto

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)

If WeaponList.HasForm(akBaseObject)

Float StartSpeed = (akBaseObject as weapon).GetSpeed()

SetSpeed((akBaseObject as weapon),(StartSpeed * SpeedAdjustment))

EndIf

EndEvent

Link to comment
Share on other sites

I think maybe using SKSE. Possibly be something like the following.

 

Scriptname SomeScript Extends ReferenceAlias

FormList Property WeaponList Auto

Float Property SpeedAdjustment Auto

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)

If WeaponList.HasForm(akBaseObject)

Float StartSpeed = (akBaseObject as weapon).GetSpeed()

SetSpeed((akBaseObject as weapon),(StartSpeed * SpeedAdjustment))

EndIf

EndEvent

Mmmmm wouldn't that be referencing attack speed and not projectile speed?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...