I tried to do somethign like
// random shooting proc behind this...
var/sound/S = sound('Gunshot.mid') // ...
S.x += Clicked_Place.x-x
S.y += Clicked_Place.y-y
var/volume = 100-get_dist(src,Clicked_Place)*3 // This one works
view() << S
It doesn't work very well with the x and y variables (runtime errors), but if I erase them, the volume works.