if (damaged == 0) { shaking = 8 flashing = 5 if (myhealth <= 0) event_user(1) sfx_stop(sndRobotHit2) sfx_play(sndRobotHit2) }