beginscript; SpawnUnit(); ExcTargetType(0x1); IncludeGTarget(2); SetTargetSelectMode(0); SetFollowRange(0); DisableAvoidanceTurn(1); label Wait: if (GetGlobalVar(0) == 2 && PlayerInRange(300)) { TriggerUnit(hud); IncTargetType(0xffffffff); IncTargetType(0x2); IncludeGTarget(2); SetTargetSelectMode(0); TriggerMessage(42,h42,Tnk_G2_1); SetGroupFollowConvoy(60, 0, 0); SetGroupConvoySpacing (200, 50); EndFrame(); goto NP1; } else if (GetOtherUnitHealth(GetUnitID()) < 70) { ModifyOtherUnitHealth (GetUnitID(), 100); } if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame(); goto Wait; label NP1: if (GetFollowMode() == 3) { SetFollowWaypoint(48,0,0); TriggerMessage(28,h28,Tnk_G2_1); TriggerUnit(APC_G1_2); TriggerUnit(WM_G1_02); TriggerUnit(APC_G2_1); TriggerUnit(WM_G1_01); EndFrame(); goto Wait1; } EndFrame(); goto NP1; label Wait1: if (OtherUnitDead(Div_G7_1)) { WaitForTime(20); TriggerMessage(42,h42,Tnk_G2_1); SetGroupFollowConvoy(104, 0, 0); SetGroupConvoySpacing (200, 50); EndFrame(); goto NP2; } EndFrame(); goto Wait1; label NP2: if (GetFollowMode() == 3) { SetFollowWaypoint(115,0,0); TriggerMessage(22,h22,Tnk_G2_1); TriggerUnit(APC_G1_2); TriggerUnit(WM_G1_02); TriggerUnit(APC_G2_1); TriggerUnit(WM_G1_01); EndFrame(); goto Wait2; } EndFrame(); goto NP2; label Wait2: if (OtherUnitDead(Div_G7_1)) { WaitForTime(20); SetGroupFollowConvoy(41, 0, 0); SetGroupConvoySpacing (200, 50); EndFrame(); goto NP3; } EndFrame(); goto Wait2; label NP3: if (GetFollowMode() == 3 && UnitInArea(1432, 980, 400)) { SetFollowWaypoint(63,0,0); TriggerMessage(23,h23,Tnk_G2_1); TriggerUnit(APC_G1_2); TriggerUnit(WM_G1_02); TriggerUnit(APC_G2_1); TriggerUnit(WM_G1_01); EndFrame(); goto Wait3; } EndFrame(); goto NP3; label Wait3: //if (OtherUnitDead(Div_G7_1)) if (GetGlobalVar(3) >= 12) { TriggerMessage(26,h26,Tnk_G2_1); WaitForTime(40); SetGroupFollowConvoy(81, 0, 0); SetGroupConvoySpacing (200, 50); WaitForTime(40); TriggerMessage(27,h27,Tnk_G2_1); SetGlobalVar(5,1); EndFrame(); goto Home; } EndFrame(); goto Wait3; label Home: if (GetFollowMode() == 3) { SetFollowWaypoint(54,0,0); TriggerUnit(APC_G1_2); TriggerUnit(WM_G1_02); TriggerUnit(APC_G2_1); TriggerUnit(WM_G1_01); WaitForTime(40); EndFrame(); goto Win; } EndFrame(); goto Home; label Win: if (GetFollowMode() == 3) { EndFrame(); goto End; } EndFrame(); goto Win; label End: EndFrame(); goto End; endscript; $