Player.SetCanWalk
From GMod Wiki
Function | |
Syntax | Player:SetCanWalk( Boolean bool ) |
Description: | |
Sets whether you can use walk (alt). | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SetCanWalk]Player.SetCanWalk [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Makes the player unable to walk with their walk key (Usually Alt) |
---|---|
Used on | |
Code | player.GetByID(1):SetCanWalk(false) //No walking for you |
Output | N/A |