if (instance_exists(obj_hg_body)) { if (obj_hg_body.c_counter < 280) event_user(7); }