Garry's Mod Wiki

Revision Difference

Entity:SetGravity#566143

<function name="SetGravity" parent="Entity" type="classfunc"> <description> Sets the gravity multiplier of the entity. This may not affect affect all entities, but does affect players, and entities with <page text="MOVETYPE_FLYGRAVITY">Enums/MOVETYPE#MOVETYPE_FLYGRAVITY</page>, such as projectiles. ⤶ <bug issue="3648">This function is not predicted or networked.</bug>⤶ </description> <realm>Shared</realm> <args> <arg name="multiplier" type="number">By how much to multiply the gravity. `1` is normal gravity, `0.5` is half-gravity, etc.</arg> </args> </function>