you need to use two different c_move instructions. One with ACTIVATE_SONAR and one without. like this:


Code:
var use_sonar = ON;
while(1)
{
   if(use_sonar == ON)
   {
      c_move(my, vector(time_step,0,0),ACTIIVATE_SONAR|IGNORE_PASSABLE);
   }
   else
   {
      c_move(my, vector(time_step,0,0),IGNORE_PASSABLE);
   }
   wait(1);
}



now use a function to switch use_sonar on and off, and there you go.
Is that what you mean?

Last edited by Germanunkol; 07/09/09 07:46.

~"I never let school interfere with my education"~
-Mark Twain