Executing console commands: Difference between revisions
Jump to navigation
Jump to search
m (orphan) |
(Redirecting this page to Developer_Console_Control as the same info can be found there) |
||
Line 1: | Line 1: | ||
#REDIRECT [[Developer_Console_Control#Executing_commands]] | |||
{{orphan}} | {{orphan}} | ||
== Executing command on client == | == Executing command on client == |
Revision as of 08:48, 3 November 2011
Redirect to:

This article is an orphan, meaning that few or no articles link to it.
You can help by
adding links to this article from other relevant articles.
You can help by

Executing command on client
If you wish to execute a console command on a client from the server use:
engine->ClientCommand( edict(), "command", ... );
Where edict() is your ent's edict, "command" would be replaced by your concommand, followed by any formatted vars (same as printf). This would be useful for showing a team selection menu.
Executing command from client
If you want to execute a client command, on the client you would use engine->ClientCmd( "command" );
. Unlike the server-side one, this does not support formatting.