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

target_changegravity

From Valve Developer Community
Jump to: navigation, search
class hierarchy
CTargetChangeGravity defined in controlentities.cpp
CPointEntity
CBaseEntity

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

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


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


Keyvalues

gravity (gravity) <integer>
Gravity to apply.

Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Inputs

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