Player.Crouching
From GMod Wiki
| Function | |
| Syntax | Player:Crouching( ) |
| Description: | |
| Returns true if the player is crouching. | |
| Returns: | Boolean |
| In Object: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.Crouching]Player.Crouching [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- After jumping then landing and sliding down a slope, the player is no longer considered crouching.
- After sliding off of a slope into the air, the player can crouch and stand at will while flying. (This can happen from jumping while moving up a slope.)
- Use Entity.OnGround to see if the player is on the ground.