Target changegravity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added class hierarchy, cleanup)
mNo edit summary
Line 1: Line 1:
__NOTOC__
{{CD|CTargetChangeGravity|file1=controlentities.cpp}}
{{CD|CTargetChangeGravity|file1=controlentities.cpp}}
{{base point|target_changegravity}}
{{base point|target_changegravity}}
Line 5: Line 6:


{{code class|CTargetChangeGravity|controlentities.cpp}}
{{code class|CTargetChangeGravity|controlentities.cpp}}
__TOC__
 


==Keyvalues==
==Keyvalues==

Revision as of 01:05, 13 November 2022

C++ Class hierarchy
CTargetChangeGravity
CPointEntity
CBaseEntity
C++ controlentities.cpp

Template:Base point

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.