Hi, I'm getting the 'undeclared identifier' message for the predefined 'temp' variable. Is this because I have my script saved as a .c file? I'm trying to use vec_set and vec_add, transferring the player's coordinates into temp. Here's my code:

function wall_scan()
{vec_set(temp, player.x);
vec_add(temp, vector(200, 0, 0);
c_trace(player.x, temp, IGNORE_ME + USE_BOX); //trace from the player to the walls
if(you == Walls_ent) //got the wall?
{c_move(player, vector(64,0,0), nullvector, GLIDE);
}
}

Note: I also tried 'temp.x' in place of 'temp'...didn't work
Pseudocode: Trace from player to a distance 200 quants in front of player... If the trace touches a wall, move player.
Note: The function works fine when I ignore vec_set, vec_add, and temp, and replace temp with Walls_ent within c_trace.
Any help would be appreciated. Thank you.