Target changegravity: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
No edit summary  | 
				mNo edit summary  | 
				||
| Line 3: | Line 3: | ||
{{this is a|point entity|name=target_changegravity}}  | {{this is a|point entity|name=target_changegravity}}  | ||
It changes the gravity multiplier value to the player who activates this entity. It doesn't work with [[NPC  | It changes the gravity multiplier value to the player who activates this entity. It doesn't work with [[NPC]]s, physics props nor other objects.  | ||
==Keyvalues==  | ==Keyvalues==  | ||
Revision as of 03:55, 13 September 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 NPCs, physics props nor other objects.
Keyvalues
- Name (targetname) <string>[ Edit ]
 - 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) <integer>
 - Gravity multiplier that player (who activated it) will have when 
ChangeGravinput 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. 
Inputs
- ChangeGrav <void>
 - Apply gravity multiplier value to player.
 
- ResetGrav <void>
 - Return default gravity value to player.