Garry's Mod Wiki

CLuaLocomotion:SetGravity

  CLuaLocomotion:SetGravity( number gravity = 1000 )

Description

Sets the locomotion's gravity.

With values 0 or below, or even lower positive values, the nextbot will start to drift sideways, use CLuaLocomotion:SetVelocity to counteract this.

Arguments

1 number gravity = 1000
New gravity to set.