if (myhealth > 0 && state > 0 && canbehit && (!flashing)) { myhealth -= 1 event_user(0) }