Events are NOT triggered every frame. Try hold rightclick and move over the entity
. There are many ways to reach what you want, for example:
if (event_type == event_touch) {
while (!mouse_right) {wait(1);} //wait until the rightmouse is pressed
breakpoint;
}
This code is not well thought. It works, but there are downsides. It just depends how, what and when you need it.