Yep. Dudebot is right. And then the rest:

Code:


function choose_way()
{
my.pan = random(160) + 10;
}


action X
{
randomize();
choose_way();
while(1)
{
temp.x = 5*time_step; // change 5 to whatever speed you want
temp.y = 0;
temp.z = 0;
c_move(me,temp,nullvector,null);
wait(1);
}
}



Hope that helps.