Player.SetCanWalk

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:SetCanWalk( Boolean bool )
Description:
Sets whether you can use walk (alt).
Returns: nil
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SetCanWalk]Player.SetCanWalk [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionMakes the player unable to walk with their walk key (Usually Alt)
Used onNewerShared.png
Code
player.GetByID(1):SetCanWalk(false)
//No walking for you
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox