Garry's Mod Wiki

Entity:SetGravity

  Entity:SetGravity( number multiplier )

Description

Sets the gravity multiplier of the entity.

This may not affect affect all entities, but does affect players, and entities with MOVETYPE_FLYGRAVITY, such as projectiles.

This function is not predicted or networked.

Issue Tracker: 3648

Arguments

1 number multiplier
By how much to multiply the gravity. 1 is normal gravity, 0.5 is half-gravity, etc.