i have hit a problem, i do not know how to make an entity point to another using just skills.
Here is what the problem is:
vec_set(vector(my.temp_pos_x, my.temp_pos_y, my.temp_pos_z), player_pos.x);
vec_sub(vector(my.temp_pos_x, my.temp_pos_y, my.temp_pos_z), my.x);
vec_to_angle(my.pan, vector(my.temp_pos_x, my.temp_pos_y, my.temp_pos_z));
temp_pos_x and temp_pos_y and temp_pos_z are skills.
When i run this the entity just points upward. is there another way of doing this to make it work?