Jump to content

A little help with an ability


cabroose

Recommended Posts

Hi Hi...

 

before i delve into the bodge job of this i figure i'll let you know what it is i'm trying to accomplish :P

 

The main goal here is to make a speed boost that only occurs while the walk key is pressed, that is applied to the character when a specific magical effect is applied. i have managed to get the effect to apply successfully however the specifics of it still elude me. I have gotten it to work on a double tap of sprint, for some reason for a split second while doing the weapon draw/sheath animation (but dont ask me how), always on or not on at all...everything but what i'm aiming for :(

 

I'll be honest with you, i'm not even sure if the code itself is making much difference at all...it compiles fine, but that means nothing probably.

 

anyhoo...here is the aforementioned code...

 

 

Scriptname wendigospeedscr extends activemagiceffect  

function modav(string speedmult)
if game.getplayer().issprinting() == 1
game.getplayer().modav(speedmult, 110)

elseif game.getplayer().isrunning() == 1
game.getplayer().modav(speedmult, 110)

elseif game.getplayer().issneaking() ==1
game.getplayer().modav(speedmult, 120)

elseif game.getplayer().isrunning() ==0 && game.getplayer().issprinting() == 0 && game.getplayer().issneaking() == 0
game.getplayer().modav(speedmult,200)

endif





endfunction

 

 

 

I'm using modav at the moment, i was using setav...didnt make too much difference :(

any help or insights would be appreciated...i've been banging my head against this for some time :(

Link to comment
Share on other sites

  • Recently Browsing   0 members

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