ssEDFX 0 0 -1000 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 vol = 0; playing = 0; sid = 0; minvol = 0.2; maxvol = 1; 1 603 7 0 0 -1 2 self 0 0 1 var sid; sid = sfx_loop(sound); audio_sound_gain(sid, 1 * global.opsoundvolume / 100, 0); playing = 1; 1 603 7 0 0 -1 2 self 0 0 1 if (point_distance(x, y, oCharacter.x, y) < radius) { vol = maxvol; } else if (point_distance(x, y, oCharacter.x, y) < maxradius) { vol = maxvol - (point_distance(x, y, oCharacter.x, y) - radius) / (maxradius - radius) * (maxvol - minvol); } else vol = minvol; if (room == rm_a3a21) { if (global.movingobj == 0) vol = 0; } if (playing) audio_sound_gain(sound, vol * global.opsoundvolume / 100, 0); 1 603 7 0 0 -1 2 self 0 0 1 sfx_stop(sound); 1 603 7 0 0 -1 2 self 0 0 1 alarm[0] = 2; 1 603 7 0 0 -1 2 self 0 0 1 draw_set_color(c_white); draw_set_font(fontMenuSmall); draw_text(view_xview[0] + 40, view_yview[0] + 80, string(vol)); 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1