Player.GetCanWalk

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:GetCanWalk( )
Description:
Retrieve whether the player can walk.
Returns: Boolean
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetCanWalk]Player.GetCanWalk [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]




Example

DescriptionPrint whether the player can walk
Used onNewerShared.png
Code
player.GetByID(1):SetCanWalk(false)
print(player.GetByID(1):GetCanWalk())
//Now let them walk
player.GetByID(1):SetCanWalk(true)
print(player.GetByID(1):GetCanWalk())
Outputfalse true


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox