trigger_gravity_field

XashXT

trigger_gravity_field

Creates an area with modified gravity in the map. Unlike trigger_gravity, returns gravity to normal when the area is exited.

The object works correctly only with the player.

Option

gravity Gravity factor—a factor of the global sv_gravity option in the range from 0 to 1.
Example: If sv_gravity is 800, a factor of 0.5 produces gravity 400, a factor of 0.25 produces gravity 200 and so on.

Usage Details

  • In theory, this entity has the complete set of options found in trigger_inout. In practice, however, you may run into problems while changing gravity for NPCs, because most of them rarely leave the ground. What's more, the parameter will have absolutely no effect on physics objects, because PhysX does not support local gravity for arbitrary objects, but only for the entire scene.