Game Development Reference
In-Depth Information
Speed
Setting and accessing the speed of our agents can be done through the
GetSpeed
and
SetSpeed
functions.
local speed = agent:GetSpeed();
agent:SetSpeed(speed);