tried it and got the following error message:

empty pointer in ammo_pack:
((vec_dist(player.x, my.x) < 50 && current_ammoreserve < 180)