Originally Posted By: MrGuest
something like
Code:
/*************************************************
	makes me look at you
*************************************************/
function look_at(ENTITY* ent_me, ENTITY* ent_you){
	var temp[3];
	
	vec_set(temp, ent_you.x);
	vec_sub(temp, ent_me.x);
	vec_to_angle(ent_me.pan, temp);
}

/*************************************************
	makes me look at position
*************************************************/
function look_to(ENTITY* ent_me, VECTOR* vec){
	var temp[3];
	
	vec_set(temp, vec);
	vec_sub(temp, ent_me.x);
	vec_to_angle(ent_me.pan, temp);
}
?

Thats nice!
I put it into the reference.
I added 2 new Functions too.
- str_cat_b this add the secound string on the beginning of the first string
- str_cat_num_b same like str_cat_b with a var