Player.GetJumpPower

From GMod Wiki

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