Player.GetCurrentCommand
From GMod Wiki
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