Try this one (not tested, but without errors):
Code:
action attach_weapon() 
{
	VECTOR base_vec;
	VECTOR tip_vec;
	ANGLE base_ang;
	set(my,PASSABLE); 
	proc_mode = PROC_LATE;
	while (player != NULL) { wait(1); } 
	while(1)
	{
		vec_for_vertex(base_vec.x,player,125); //hand palm base
		vec_for_vertex(tip_vec.x,player,130); //hand palm tip
		vec_set(my.x,base_vec.x);
		vec_diff(base_vec.x,tip_vec.x,base_vec.x);
		vec_to_angle(base_ang.pan,base_vec.x);
		vec_set(my.pan,base_ang.pan);
		wait(1);
	}
}




Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung