Point playermoveconstraint
From Valve Developer Community
This point-based entity is available in all Source games.
| Table of contents |
[edit]
Entity Description
An entity that constrains players to a radius around itself, slowing them down the closer they get to the edge of the radius.
[edit]
Keyvalues
- targetname <target_source>
- Defines the name that other entities refer to this entity by.
- hammerid [Episode Two Update]
- <integer readonly> This id is used for debugging purposes in Hammer.
- radius <float>
- Radius to constrain players to.
- width <float>
- Width of the constraint edge. This is the distance in which to start slowing players down as they approach the edge of the radius.
- speedfactor <float>
- Speed factor applied to the player's max speed as they approach the radius edge.
[edit]
Inputs
- Kill
- Removes this entity from the world.
- Removes this entity and all its children from the world.
- AddOutput <string>
- Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
<key> <value> - Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
- Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
- TurnOn
- Start constraining any players within the radius.
- TurnOff
- Stop constraining any players previously constrained.
[edit]
Outputs
- Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
- !activator = activator
- OnConstraintBroken
- Fired when a player breaks through the constraint. !caller = player
