Garry's Mod Wiki

CLuaLocomotion:SetDesiredSpeed

  CLuaLocomotion:SetDesiredSpeed( number speed = 0 )

Description

Sets how far the NextBot will need to move each time CLuaLocomotion:Approach is called to move at given speed.

The default amount is 0. This means the bot will not move if this value has not been set.

Arguments

1 number speed = 0
The new desired speed