phys_keepupright
Jump to navigation
Jump to search
![]() |
---|
CKeepUpright |
![]() |
phys_keepupright
is a point entity available in all Source 2 games. It is a controller that tries to keep an entity facing a particular direction.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Target Entity (attach1) <targetname>
- The entity to align to the desired angles.
- Angular Limit (angularlimit) <float>
- The maximum angular velocity that this controller can compensate for, in degrees per second.
- Damp all rotation (dampAllRotation) <boolean>
- Forces the upright behavior to have perfect damping, instead of progressively damping.
Flags
- Start inactive : [1]
Inputs
- TurnOn
- Enable the controller.
- TurnOff
- Disable the controller.
Base:
- RunScriptFile
- Load and execute a script file.
- RunScriptCode
- Execute a fragment of script code.
- CallScriptFunction
- Call a script function.
- CallPrivateScriptFunction
- Calls a script function from this entity's private script scope.
- CallGlobalScriptFunction
- Calls a script function in the global script scope.
- Kill
- Removes this entity from the world.
- KillHierarchy
- Removes this entity and all its children from the world.
- AddOutput
- Adds an entity I/O connection to this entity. Parameter format: OutputName→TargetName→InputName→Parameter→Delay→MaxRefires
- FireUser1 to FireUser4
- Fires the respective
OnUser
outputs; see User Inputs and Outputs.