Do Nextbots work?

I’m using the example code from the nextbot discussion thread yet my bot doesn’t move. She will face the direction she is trying to move in, and her legs will be in walking form, but will not move. Even when picked up and dropped. Same with the second example script of the jumping spider thing.

sandbox/entities/entities/bot.lua
[lua]
AddCSLuaFile()

ENT.Base = “base_nextbot”
ENT.Spawnable = true

function ENT:Initialize()
self:SetModel( “models/mossman.mdl” )
end

function ENT:BehaveAct()
end

function ENT:RunBehaviour()
while ( true ) do
– walk somewhere random
self:StartActivity( ACT_WALK )
self.loco:SetDesiredSpeed( 100 )
self:MoveToPos( self:GetPos() + Vector( math.Rand( -1, 1 ), math.Rand( -1, 1 ), 0 ) * 200 )

    coroutine.yield()

end

end

list.Set( “NPC”, “bot”,
{ Name = “Botty”,
Class = “bot”,
Category = “Mine”
})
[/lua]

Type “sv_cheats 1; nav_generate” in console.