The code still doesn't work. You're right about temp being modified but I have no idea by what since I don't use it anywhere else. I added a watch(never thought of that before) on temp, set a breakpoint at temp = vector(1,0,0); and the x value goes from 0 to 264628.23 at that point. Is temp a predefined variable? I've tried changing it to another name and I get an Unknown Parameter error.
Code:
// main game loop
while(1)
{
if(gid01_level_state != gid01_level_loaded)
{
freeze_mode = 1; // pause the game
while(gid01_level_state != gid01_level_loaded) { wait(1); }
freeze_mode = 0; // resume the game
}

wait(1);

UpdateBots();
}


Function is defined in another wdl.
Code:
function UpdateBots()
{
my = ptr_for_handle(list[0]);
wait(-5.0);
temp = vector(1,0,0);
c_move(me, temp, nullvector, GLIDE);
}