While Running

I want to make a hook that’s run during the person running.

What’s the “while running” function that I can add the hook to?

This for when they press the key: **[Gamemode.KeyPress

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.KeyPress)**
and this for when they release: **[Gamemode.KeyRelease

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.KeyRelease)**

And then just check if key is IN_RUN and do your stuff

Think? If you want it to be run every frame that people run? hook.Call ?

That way is more efficient than checking every frame, just set a variable positive on keypress and delete the variable on key release.

It probably is. But I’m just mentioning the possible ways;).