Player.GetCurrentCommand
From GMod Wiki
Revision as of 17:33, 25 September 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax | Player:GetCurrentCommand( ) |
Description: | |
Retuns the current CUserCmd. | |
Returns: | CUserCmd |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.GetCurrentCommand]Player.GetCurrentCommand [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Notes
- CUserCmd is networked, so you can access it on the client and server
- Normally you modify the CUserCmd in GM:CreateMove on the client. On the server you can access the user's CUserCmd by calling this