Point servercommand

From Valve Developer Community
Revision as of 08:22, 22 November 2022 by Nescius (talk | contribs) (-added class hierarchy, cleanup)
Jump to navigation Jump to search
C++ Class hierarchy
CPointServerCommand
CPointEntity
CBaseEntity
C++ client.cpp

Template:Base point 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.

Note.pngNote:Due to a high risk of abuse, it is gated by the sv_allow_point_servercommand console variable.

("always" = On "disallow" = Off)

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

Command <stringRedirectInput/string>
Command to execute.
Icon-Bug.pngBug:In Hammer, using " symbol in parameter field will corrupt the VMF file's structure, making the file unviewable for the next Hammer session.  [todo tested in ?]
Note.pngFix:Remove the string argument manually with a text editor.

See Also