hmmm.. I understand what you say but I don't have the knowledge to turn it in a code. I hope someone can finish my peace of code frown

action guard1()
{
while (1)
{
c_move(me,vector(3 * time_step, 0, 0),nullvector, GLIDE);

if ???? some code when its near a wall ??

{
pan += 90;
}

wait(1);
}}