beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { SetNumLives(1); ExcTargetType(0xffffffff); SetFollowWaypoint(93,0,0); SetFollowRange(100); EndFrame(); goto End; } EndFrame(); goto Wait; label End: if (OtherUnitInRange(Sld_Gr3_01_Scr,100)) { IncTargetType(0xffffffff); ExcTargetType(0x2); IncludeGTarget(13); SetFollowRange(1000); } else if (OtherUnitInRange(Sld_Gr3_02_Scr,100)) { IncTargetType(0xffffffff); ExcTargetType(0x2); IncludeGTarget(13); SetFollowRange(1000); } else if (OtherUnitInRange(Sld_Gr3_03_Scr,100)) { IncTargetType(0xffffffff); ExcTargetType(0x2); IncludeGTarget(13); SetFollowRange(1000); } else if (OtherUnitInRange(Sld_Gr3_04_Scr,100)) { IncTargetType(0xffffffff); ExcTargetType(0x2); IncludeGTarget(13); SetFollowRange(1000); } if ((GetFollowMode() == 3) && UnitDead() != 1) { //KillUnit(); DespawnUnit(); SetVar(0, Rnd()); SetVar(1, Rnd()); if (GetVar(0) > 255/2) { //double screams if (GetVar(1) > 170) { PlaySound(Timer_DD_Scr, scream1,0); WaitForTime(5); PlaySound(Timer_DD_Scr, scream2,0); } else if (GetVar(1) > 85) { PlaySound(Timer_DD_Scr, scream2,0); WaitForTime(5); PlaySound(Timer_DD_Scr, scream3,0); } else { PlaySound(Timer_DD_Scr, scream3,0); WaitForTime(5); PlaySound(Timer_DD_Scr, scream1,0); } } else if (GetVar(0) > 255/4) { //single screams if (GetVar(1) > 170) { PlaySound(Timer_DD_Scr, scream1,0); } else if (GetVar(1) > 85) { PlaySound(Timer_DD_Scr, scream2,0); } else { PlaySound(Timer_DD_Scr, scream3,0); } } // else no sound WaitForTime(10); SpawnUnit(); SetGlobalVar(6, GetGlobalVar(6)+1); EndFrame(); goto Wait; } if (UnitDead() || GetState() == 0) { WaitForTime(50); //SpawnUnit(); EndFrame(); goto Wait; } if (GetFollowMode() == 3) { SetFollowRange(1000); } if (GetGlobalVar(3) == 3 || GetGlobalVar(3) == 10 && UnitInArea(-4015, -2096, 400) != 1) { SelectWeapons(0,0,0); SetFollowWaypoint(65,0,0); ExcTargetType(0xffffffff); } EndFrame(); goto End; endscript; $