• Check jump power before jumping?
    7 replies, posted
Hey guys, just wondering if there is a way to see the jump power before you jump and if there is a way to know when the player has jumped Thank
[url]http://wiki.garrysmod.com/?title=Player.GetJumpPower[/url] Seriously, did you even LOOK at the wiki?
What i mean is, I have made a energy value and when its above 50 you can jump higher and i have no idea how to subtract 50 when someone jumps
I don't know lua but I figure you would get the value from the GetJumpPower and just -50 from it. Eh, I dunno. :v:
[url]http://wiki.garrysmod.com/?title=Player.SetJumpPower[/url] ...seriously.
Are you kidding me? I know how to use the wiki im not a retard, im just new to lua. I can set the power, get the power of the just whatever. All i need is a hook that is called just before the player jumps or while the player is jumping
This might also help. [url]http://wiki.garrysmod.com/?title=Move[/url]
You guys are weird... Check for the key IN_JUMP in this hook: [url]http://wiki.garrysmod.com/?title=Gamemode.KeyPress[/url]
Sorry, you need to Log In to post a reply to this thread.