Point clientcommand: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 3: Line 3:


==Entity Description==
==Entity Description==
A point entity which issues commands to the client console, as if it was typed in by the player (if activator is a player, or the local player in single player). Commands are sent as paramater overrides via the ''Command'' input; one ''point_clientcommand'' could be used to send all required console commands for a given map.


Since console commands can be extremely powerful, use with care.
This point entity issues commands to the client console as if they were typed manually by the player. The client commands are sent as parameters of the ''Command'' [[input]]. One instance of the entity is ever needed in a map.


In multiplayer games, the commands are only executed on the [[Activator]]'s client. {{todo|What is the activator isn't a player?}}


* Tutorial : [[Unlocking chapters in your mod]]
== See also ==
*[[Unlocking chapters in your mod]]
*[[point_servercommand]]


==Keyvalues==
==Keyvalues==

Revision as of 03:44, 16 May 2008

Template:Wrongtitle Template:Base point

Entity Description

This point entity issues commands to the client console as if they were typed manually by the player. The client commands are sent as parameters of the Command input. One instance of the entity is ever needed in a map.

In multiplayer games, the commands are only executed on the Activator's client.

Todo: What is the activator isn't a player?

See also

Keyvalues

Inputs

  • Kill
Removes this entity from the world.
  • KillHierarchy
Removes this entity and all its children from the world.
  • AddOutput <string>
Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
  • FireUser1-4
Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
  • Command <string>
Command to execute.

Outputs