This article's documentation is for anything that uses the Source engine. Click here for more information.

target_changegravity

From Valve Developer Community
Revision as of 23:18, 6 January 2024 by PeeBot (talk | contribs) (Replacing {{base point}} with {{this is a}}. This operation was performed by a bot.)
Jump to navigation Jump to search
C++ Class hierarchy
CTargetChangeGravity
CPointEntity
CBaseEntity
C++ controlentities.cpp

target_changegravity is a point entity available in all Source Source games.

It changes the gravity of the player who activates this entity.

C++ In code, it is represented by theCTargetChangeGravityclass, defined in thecontrolentities.cppfile.


Keyvalues

gravity (gravity) <integer>
Gravity to apply.
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

Inputs

ChangeGrav
Change !activator's gravity.
ResetGrav
Reset !activator's gravity.