Player.GetDuckSpeed

From GMod Wiki

Revision as of 17:47, 17 March 2011 by [SoW] Dr. Chapman (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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