function scr_returnwait_instance(arg0, arg1, arg2) { var dist = max(1, round(point_distance(arg0.x, arg0.y, arg1.x, arg1.y) / arg2)); return dist; }