point_servercommand
![]() |
---|
CPointServerCommand defined in ![]() client.cpp
|
point_servercommand
is a point available in all Source games. It issues commands to the server console. It's used by simply placing it in a map and triggering the Command input, the parameter override should be the exact console command to run.
![](/w/images/thumb/2/2e/Confirm.png/10px-Confirm.png)
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Garry's Mod](/w/images/thumb/e/ea/Gmod_icon.png/16px-Gmod_icon.png)
![PlacementTip.png](/w/images/thumb/c/cc/PlacementTip.png/14px-PlacementTip.png)
RunConsoleCommand('command')
Keyvalues
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Inputs
Command
<string>- Command to execute.
Bug:In Hammer, using " symbol in parameter field will corrupt the VMF file's structure, making the file unviewable for the next Hammer session.
Fix: Remove the string argument manually with a text editor.