Player.GetJumpPower

From GMod Wiki

Revision as of 21:31, 18 September 2009 by Dlaor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:GetJumpPower( )
Description:
Get the player's "jump power" (how much upwards velocity is added when jumping)
Returns: Number
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetJumpPower]Player.GetJumpPower [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionThis function will return true if the player is The Hulk. (a.k.a. jump incredibly high)
Used onNewerShared.png
Code
function IsHulk( player )
    return player:GetJumpPower() >= 2000 
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox