Use vec_to_angle for that. If "vSpeed" is the speed vector of your fireball, set its angle by

vec_to_angle(my.pan,vSpeed);