Trigger gravity: Difference between revisions
Jump to navigation
Jump to search

Warning:This entity only affects the player, despite the flags
SirYodaJedi (talk | contribs) (→Keyvalues: the "0-1" misleads into sounding like gravity can't exceed 1.) |
SirYodaJedi (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
{{CD|CTriggerGravity|file1=triggers.cpp}} | {{CD|CTriggerGravity|file1=triggers.cpp}} | ||
{{this is a|brush entity|name=trigger_gravity}} It scales the force of [[gravity]] of players touching its volume. | {{this is a|brush entity|name=trigger_gravity}} It scales the force of [[gravity]] of players touching its volume. | ||
The change in gravity applies until the player touches another {{code|trigger_gravity}}. | |||
{{warning|This entity only affects the player, despite the flags}} | {{warning|This entity only affects the player, despite the flags}} | ||
Revision as of 12:54, 23 November 2025
| CTriggerGravity |
trigger_gravity is a brush entity available in all
Source games. It scales the force of gravity of players touching its volume.
The change in gravity applies until the player touches another trigger_gravity.
Keyvalues
- Name (targetname) <string>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report. - See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Gravity (gravity) <float>
- Gravity multiplier. 1 is normal gravity, 0 is none. Accepts negative values and decimals.
|
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.