VECTOR temp;
vec_set(your.x,temp);
vec_sub(temp,my.x);
vec_to_angle(temp,my.pan);

Put that in a while loop in the entities action (your.x being the entity of course)

EDIT: Beat me to it grin

Last edited by Tai; 09/14/09 22:09.