Garry's Mod Wiki

Revision Difference

CLuaLocomotion:SetDesiredSpeed#565121

<function name="SetDesiredSpeed" parent="CLuaLocomotion" type="classfunc"> <description>Sets movement speed. The default value is 0. used by <page>CLuaLocomotion:Approach</page> </description>⤶ <description>Sets how far the NextBot will move each time <page>CLuaLocomotion:Approach</page> is called.⤶ ⤶ The default amount is 0. This means the bot will not move if this value has not been set.⤶ </description>.⤶ <realm>Server</realm> <args> <arg name="speed" type="number">The new desired speed</arg> <arg name="speed" type="number" default="0">The new desired speed</arg> </args> </function>