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

Trigger gravity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Keyvalues: don't have a double catagory, changed to reflect ability to accept decimals)
No edit summary
 
(11 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{base brush|trigger_gravity}} It scales the force of [[gravity]] applied to players (ONLY players, despite its [[#Flags|flags]]) inside it. Players will retain scaled gravity until reset.
{{LanguageBar}}
{{TabsBar|main=gs|base=Trigger gravity}}
{{CD|CTriggerGravity|file1=triggers.cpp}}
{{this is a|brush entity|name=trigger_gravity}} It scales the force of [[gravity]] of players touching its volume.
{{warning|This entity only affects the player, despite the flags}}


== Keyvalues ==
== Keyvalues ==
{{KV|Gravity (0-1)|integer|Gravity multiplier. 1 is normal gravity, 0 is none. Accepts negative values and decimals.}}
{{KV Targetname}}
{{KV|Gravity (0-1)|intn=gravity|float|Gravity multiplier. 1 is normal gravity, 0 is none. Accepts negative values and decimals.}}
{{KV Trigger}}
{{KV Trigger}}
== Flags ==
{{Fl Trigger}}
{{bug|This entity only affects the player, despite the flags}}


== Inputs ==
== Inputs ==
{{I Trigger}}
{{I EnableDisable}}


== Outputs ==
== See also ==
{{O Trigger}}
* {{ent|env_gravity}}
* [[Gravity]]


{{sensor brush}}
{{sensor brush}}

Latest revision as of 10:01, 9 September 2024

English (en)Translate (Translate)
C++ Class hierarchy
CTriggerGravity
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

trigger_gravity is a brush entity available in all Source Source games. It scales the force of gravity of players touching its volume.

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

Keyvalues

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

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).

Inputs

EnableDisable:

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

See also