CLuaLocomotion/SetGravity

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Description={{NextUpdate}}Sets the locomotion's gravity.
+
|Description=Sets the locomotion's gravity.
  
 
{{Note|With values 0 or below, or even lower positive values, the nextbot will start to drift sideways, use {{ClassFunction|CLuaLocomotion|SetVelocity}} to counteract this.}}
 
{{Note|With values 0 or below, or even lower positive values, the nextbot will start to drift sideways, use {{ClassFunction|CLuaLocomotion|SetVelocity}} to counteract this.}}

Latest revision as of 16:40, 12 November 2019

 CLuaLocomotion:SetGravity( )

Description

Sets the locomotion's gravity.

NOTE

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

Arguments

number gravity

New gravity to set. Default is 1000.
Personal tools
Navigation