Target changegravity: Difference between revisions
Jump to navigation
Jump to search
m (Replacing {{base point}} with {{this is a}}. This operation was performed by a bot.) |
MyGamepedia (talk | contribs) (Added more detailed explanation of how this entity works.) |
||
Line 3: | Line 3: | ||
{{this is a|point entity|name=target_changegravity}} | {{this is a|point entity|name=target_changegravity}} | ||
It changes the gravity | It changes the gravity multiplier value to the player who activates this entity. It doesn't work with [[NPC|NPC's]], physics props and other objects. | ||
{{code class|CTargetChangeGravity|controlentities.cpp}} | {{code class|CTargetChangeGravity|controlentities.cpp}} | ||
Line 9: | Line 9: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|gravity|intn=gravity|integer|Gravity | {{KV|gravity|intn=gravity|integer|Gravity multiplier that player (who activated it) will have when <code>ChangeGrav</code> input fire. Value for this property must be an integer, for example: 1, 2, -1, -2, etc. 0 – gravity will be standard, i.e. equals 1.}} | ||
{{KV Targetname}} | {{KV Targetname}} | ||
==Inputs== | ==Inputs== | ||
{{IO|ChangeGrav| | {{IO|ChangeGrav|Apply gravity multiplier value to player.}} | ||
{{IO|ResetGrav| | {{IO|ResetGrav|Return default gravity value to player.}} |
Revision as of 11:08, 14 May 2024
![]() |
---|
CTargetChangeGravity |
![]() |
target_changegravity
is a point entity available in all Source games.
It changes the gravity multiplier value to the player who activates this entity. It doesn't work with NPC's, physics props and other objects.
Keyvalues
- gravity (gravity) <integer>
- Gravity multiplier that player (who activated it) will have when
ChangeGrav
input fire. Value for this property must be an integer, for example: 1, 2, -1, -2, etc. 0 – gravity will be standard, i.e. equals 1.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- ChangeGrav
- Apply gravity multiplier value to player.
- ResetGrav
- Return default gravity value to player.