Trigger gravity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added class hierarchy, cleanup)
mNo edit summary
Line 1: Line 1:
{{CD|CTriggerGravity|file1=triggers.cpp}}
{{CD|CTriggerGravity|file1=triggers.cpp}}
{{base brush|trigger_gravity}} It scales the force of [[gravity]] of players touching its volume.
{{entity|trigger_gravity|type=e2}} It scales the force of [[gravity]] of players touching its volume.
{{warning|This entity only affects the player, despite the flags}}
{{warning|This entity only affects the player, despite the flags}}



Revision as of 07:34, 24 January 2023

C++ Class hierarchy
CTriggerGravity
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

Template:Entity It scales the force of gravity of players touching its volume.

Warning.pngWarning:This entity only affects the player, despite the flags

Keyvalues

Gravity (0-1) (gravity) <float>
Gravity multiplier. 1 is normal gravity, 0 is none. Accepts negative values and decimals.
BaseTrigger
Filter Name (filtername) <filter>
A filter entity to test potential activators against.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
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

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

See Also