Player.GetCanWalk

From GMod Wiki

Revision as of 14:52, 13 September 2009 by UnrealomegaBot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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