vec_dist() is the best. You can also use it instead of c_scan sometimes when you only have a specific entity in mind for scanning. Just like this AI example. Your enemies could scan every frame for the player, which is slow, or they could just check how far away he is, which is fast.