NPC:SetSchedule
Description
Sets the NPC's current schedule.
Arguments
Example
Function which forces an NPC to walk to an entity.
function NPCMoveTo( npc, ent )
if ( !IsValid( npc ) or !IsValid( ent ) ) then return end
npc:SetSaveValue( "m_vecLastPosition", ent:GetPos() )
npc:SetSchedule( SCHED_FORCED_GO )
-- npc:SetSchedule( SCHED_FORCED_GO_RUN )
end