phys_keepupright

From Valve Developer Community

Jump to: navigation, search

This is a point entity available in all Source games.

Contents

Entity Description

A controller that tries to keep an entity facing a particular direction.

Keyvalues

  • Targetname:

Name <string>
The targetname other entities refer to this entity by.
  • Angles:

Pitch Yaw Roll (Y Z X) <angle>
This entity's angular orientation in the world.
The direction to try to keep the constrained entity faced at.
  • attach1 <target_destination>
The entity to align to the desired angles. (Wildcards are not allowed.)
  • angularlimit <float>
The maximum angular velocity that this controller can compensate for, in degrees per second.

Flags

  • 1: Start inactive

Inputs

  • Targetname:

Kill
Removes this entity from the world.
KillHierarchy
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 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.
  • TurnOn
Enable the controller.
  • TurnOff
Disable the controller.

Outputs

  • Targetname:

OnUser1 to OnUser4
Fired in response to the FireUser inputs; see User Inputs and Outputs.
OnKilled (New with Left 4 Dead)
Fired when the entity is killed and removed from the game.
Personal tools