target_changegravity

From Source Entities
Jump to navigation Jump to search
Info.png

This entity is not in the stock FGD files by default.
See below for instructions on making it available.

Code classes:

target_changegravity is a point entity present in all Source games. It changes the gravity setting of players.

FGD Code[edit | edit source]

@PointClass base(Targetname) = target_changegravity : "Changes the gravity setting of players."

[ gravity(integer) : "Gravity" : 1 : "What to change the gravity amount to. Multiplier of regular gravity. Mods can easily change this keyvalue to a float, thereby greatly increasing its usefulness. Cannot be set to 0." input ChangeGrav(void) : "Changes the gravity of the activating player to the amount in Gravity." input ResetGrav(void) : "Changes the gravity of the activating player to the previous amount of gravity that was being experienced by the most recent activator player of the ChangeGrav input, before that input was sent."

]

Keyvalues[edit | edit source]

Gravity (gravity) <integer>
What to change the gravity amount to. Multiplier of regular gravity. Mods can easily change this keyvalue to a float, thereby greatly increasing its usefulness. Bug: Cannot be set to 0.

Inputs[edit | edit source]

ChangeGrav
Changes the gravity of the activating player to the amount in Gravity.
ResetGrav
Changes the gravity of the activating player to the previous amount of gravity that was being experienced by the most recent activator player of the ChangeGrav input, before that input was sent.

See Also[edit | edit source]