Player.GetDuckSpeed

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:GetDuckSpeed( )
Description:
This will return the time it takes for you, when you hold the crouch/duck-button to you are fully crouched/ducked.
Returns: Float
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetDuckSpeed]Player.GetDuckSpeed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionWill print how long it takes to crouch/duck.
Used onNewerShared.png
Code
Print(LocalPlayer():GetDuckSpeed())
OutputPrints 0.30(rounded) in console.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox