Tiller1996 Posted April 21, 2018 Share Posted April 21, 2018 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? Here's the script: https://pastebin.com/TBv6xySA Cheers! Link to comment Share on other sites More sharing options...
dubiousintent Posted April 21, 2018 Share Posted April 21, 2018 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 More sharing options...
Recommended Posts