Jump to content

Script which checks if the player runs


threore2

Recommended Posts

I need something which checks if the player is running. But I need this to work with all the running, not only always run, so IsRunning doesn't work. Below is what I want to script:

 

If player is currently running

 

player.addspell *SpellName*

 

ElseIf player is currently not running

 

player.removespell *SpellName*

 

EndIf

 

Something like that

 

:thanks:

Link to comment
Share on other sites

I need something which checks if the player is running. But I need this to work with all the running, not only always run, so IsRunning doesn't work. Below is what I want to script:

 

If player is currently running

 

player.addspell *SpellName*

 

ElseIf player is currently not running

 

player.removespell *SpellName*

 

EndIf

 

Something like that

 

:thanks:

Maybe it's just me, but I think most people have their auto-run on any time they aren't sneaking. The player moves too slow when walking to do it any other way. The only alternative to IsRunning would be checking the players position every few frames, doing the math to figure out how much distance is between those two points, and then doing more math based on speed and athletics stats (or getwalkspeed) to determine if the player is moving at a walking speed, or a running speed. Without knowing more about what this sort of spell is supposed to be doing, both cases could be something unwanted.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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