Try to define temp as vector, not as var!
And you don´t need to write temp.x...
Just do it like this:

vec_for_vertex(temp,player,125); //hand palm base

Edit: This one compiles, but I haven´t tested it:

Code:
action attach_weapon() 
{
VECTOR temp;
VECTOR temp2;	
	
set(my, PASSABLE); 
proc_mode = PROC_LATE;
while (player != NULL) { wait(1); } {
vec_for_vertex(temp,player,125); //hand palm base
vec_for_vertex(temp2,player,130); //hand palm tip
vec_set(my.x,temp);
vec_diff(temp,temp2,temp);
vec_to_angle(temp,temp);
vec_set(my.pan,temp);
wait(1);
}
}



Hope it helps...

Last edited by fogman; 11/22/10 04:12.

no science involved