Garry's Mod Wiki

Revision Difference

Entity:SetGravity#562145

<function name="SetGravity" parent="Entity" type="classfunc"> <description> Sets the gravity multiplier of the entity. ⤶ <bug issue="3648">This function is not predicted.</bug>⤶ <note>This only works on players</note>⤶ ⤶ 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="gravityMultiplier" type="number">Value which specifies the gravity multiplier.</arg> <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>