Jump to content

How do I edit this script so that it doesn't affect sneaking?


Tiller1996

Recommended Posts

Right now the script applies a force in the opposite direction if the player is running forward. Problem is it also affects sneaking. So when I'm sneaking its like the animation is fast, but I'm also moving forward slowly. What do I need to change or add so that it only affects running and not sneaking?




Cheers!

Link to comment
Share on other sites

You need to set a variable when sneaking (and reset/clear when not), which you then test for in that script to bypass the running modification.

 

I would suggest you consider using an "EventHandler" instead of a GameMode block for the "if Player.IsRunning" section. You can also use one for setting or clearing the "sneaking" variable. Please see 'TIP: Don't overlook EventHandlers' and 'Tip: EventHandler-HotKey' entries under the 'Scripting' section of the wiki "Getting started creating mods using GECK" article.

-Dubious-

Link to comment
Share on other sites

  • Recently Browsing   0 members

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