This article's documentation is for Source 2. Click here for more information.

phys_keepupright

From Valve Developer Community
Revision as of 16:01, 19 June 2024 by FrozenH2O (talk | contribs) (Create source 2 phys_keepupright page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
C++ Class hierarchy
CKeepUpright
CPointEntity
CBaseEntity
C++ phys_controller.cpp

phys_keepupright is a point entity available in all Source 2 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 or target).
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 respectiveOnUseroutputs; see User Inputs and Outputs.

Outputs