if (open_door) { open_door = false; snd_play(snd_locker); scr_lerpvar("image_index", 2, 0, 6); alarm[0] = 30; } if (close_door) { close_door = false; image_index = 2; scr_lerpvar("image_index", 0, 2, 6); }