Point playermoveconstraint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 1: Line 1:
==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.
An entity that constrains players to a radius around itself, slowing them down the closer they get to the edge of the radius.


Line 21: Line 22:
*'''OnConstraintBroken'''
*'''OnConstraintBroken'''
:Fired when a player breaks through the constraint.
:Fired when a player breaks through the constraint.
[[Category:Entities]]

Revision as of 06:17, 28 September 2005

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.

Keyvalues

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.

Inputs

Start constraining any players within the radius.
  • TurnOff
Stop constraining any players previously constrained.

Outputs

Fired when a player breaks through the constraint.