beginscript; label wait: if (GetOtherState(0x7009)!=0) { EndFrame(); goto eggs; } EndFrame(); goto wait; label eggs: if (GetOtherUnitHealth(0x7009) <= 30 ) { // insert if health is below 50 pertcent } EndFrame(); goto eggs; label End: EndFrame(); goto End; endscript; $