# How to fix an alarm event not triggering? [Gamemaker studio]

Object_1's alarm 1 event


show_message("alarm triggered");
if (Destroy = true){
instance_destroy();
}


Object_trigger's alarm start


{
temporary.Destroy = true;
temporary.image_index = 0;
}
alarm[1] = 3;


I've tried changing the alarm (and alarm event). I've tried having the alarm[1]=3 in and out of the while loop. I've tried changing the values assigned to alarm.
No matter what I do, the alarm event just doesn't trigger. It doesn't hit the show_message. I just don't know what is going on.
• What Event is object_trigger's code in? – liggiorgio Jun 16 '16 at 10:56
The alarm needs to be on the same object. When invoking alarm it's reading the local alarms, you would need to do Object_1.alarm[index] to be able to change that.