Player/GetCurrentCommand

From Garry's Mod
Jump to: navigation, search
 Player:GetCurrentCommand( )

Description

Returns the last command which was sent by the specified player. Can only be used in a Predicted Hook.

NOTE

When called clientside in singleplayer during WEAPON:Think, it will return nothing as the hook is not technically predicted in that instance. See the note on the page.

BUG

This will fail in GM:StartCommand.

Issue Tracker: #3302

Returns

CUserCmd

Last user commands
Personal tools
Navigation