Jump to content

Recommended Posts

Posted
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!

Posted

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-

  • Recently Browsing   0 members

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