beginscript; label Wait: if (GetState() != 0) { ExcTargetType(0xffffffff); EndFrame(); goto End; } EndFrame(); goto Wait; label End: EndFrame(); goto End; endscript; $