beginscript; SetVar(1,0); label Wait: if (GetState() != 0 && UnitDead() != 1 && GetGlobalVar(4) != 3) { SetNumLives(1); ExcTargetType(0x2); IncTargetType(0x1); //SetFollowWaypoint(163,0,0); //SetFollowRange(300); IncludeUTarget(Ftk_Gr1_01_scr); EndFrame(); goto DeadCheck; } else if (GetState() != 0 && UnitDead() != 1 && GetGlobalVar(4) == 3 && GetGlobalVar(3) == 0) { SetNumLives(1); ExcTargetType(0x2); IncTargetType(0x1); IncludeUTarget(Eng_G1); EndFrame(); goto DeadCheck; } else if (GetState() != 0 && UnitDead() != 1 && GetGlobalVar(3) >= 1) { SetNumLives(1); ExcTargetType(0x2); IncTargetType(0x1); ExcludeUTarget(Eng_G1); IncludeGTarget(13); SetFollowWaypoint(146,0,0); SetFollowRange(100); BreakWptsOnAttack(); label Loop: if (GetFollowMode() == 3) { SetFollowRange(1000); ReEvaluate(); SetVar(0,1); EndFrame(); goto DeadCheck; } else if (UnitDead()) { EndFrame(); goto Wait; } EndFrame(); goto Loop; } EndFrame(); goto Wait; label DeadCheck: if (UnitDead()) { EndFrame(); goto Wait; } 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; } EndFrame(); goto DeadCheck; label End: EndFrame(); goto End; endscript; $