beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { ExcTargetType(0xffff); EndFrame(); goto End; } EndFrame(); goto Wait; label End: if (GetFollowMode() == 3) { DespawnUnit(); // Play scream sound here } EndFrame(); goto End; endscript; $