beginscript; SetGlobalVar (1, 0); label Wait: if (GetState() != 0 && UnitDead() != 1) { SelectWeapons (0,0,0); ExcludeGTarget (1); IncludeGTarget (2); SetFollowRange(0); EndFrame(); goto PlayerPickup; } EndFrame(); goto Wait; label PlayerPickup: if (PlayerInRange(120) != 1) { EndFrame(); goto PlayerPickup; } WaitForTime (20); label PlayerPickup2: if (PlayerInRange(120) != 1) { EndFrame(); goto PlayerPickup; } label TruckFull: if (GetGlobalVar (1) < 6) { EnterVehicle (GetUnitID(), 0x7401); label There1: if (GetState() != 0) { EndFrame(); goto There1; } SetGlobalVar (1, GetGlobalVar(1) + 1); TurnPointyOff(GetUnitID()); EndFrame(); goto PlayerDropoff; } EndFrame(); if (GetGlobalVar (2) < 6) { TriggerMessage (10, h10, 0xffff); EndFrame(); goto PlayerPickup; } TriggerMessage (31, h31, 0xffff); EndFrame(); goto PlayerPickup; label PlayerDropoff: if (GetGlobalVar (2) < 6) { //label PlayerDropoff: if (OtherUnitInArea (0x7401, -2033, -618, 120) != 1) { EndFrame(); goto PlayerDropoff; } WaitForTime (20); label PlayerDropoff2: if (OtherUnitInArea (0x7401, -2033, -618, 120) != 1) { EndFrame(); goto PlayerDropoff; } SelectWeapons (0,0,0); ExitVehicle (GetUnitID(), 0x7401, tunnel); EnableControl(0, 0); EnableControl(1, 0); EnableControl(2, 0); EnableControl(3, 0); ToggleArmor (GetUnitID()); ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } label Leavin: if (GetState() == 8 || GetState() != 0) { ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame(); goto Leavin; } SelectWeapons (0,0,0); SetFollowRange(0); ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } label Closer: if (UnitDead () || GetState() == 9) { EndFrame(); goto End; } if (GetFollowWayID() != tunnel) { ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame (); goto Closer; } SetGlobalVar (1, GetGlobalVar(1) - 1); if (GetGlobalVar (1) == 0) { ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EnableControl(0, 1); EnableControl(1, 1); EnableControl(2, 1); EnableControl(3, 1); EndFrame (); goto Close; } label Close: if (UnitDead () || GetState() == 9) { EndFrame(); goto End; } if (GetFollowWayID() != tun) { ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame (); goto Close; } label InPosition: if (GetFollowMode() != 3) { ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame(); goto InPosition; } DespawnUnit (); SetGlobalVar (2, GetGlobalVar(2) + 1); goto End; } label PlayerDropoff3: if (OtherUnitInArea (0x7401, -3815, -4255, 300) != 1) { EndFrame(); goto PlayerDropoff3; } WaitForTime (20); label PlayerDropoff4: if (OtherUnitInArea (0x7401, -3815, -4255, 300) != 1) { EndFrame(); goto PlayerDropoff3; } SelectWeapons (0,0,0); ExitVehicle (GetUnitID(), 0x7401, mobile); EnableControl(0, 0); EnableControl(1, 0); EnableControl(2, 0); EnableControl(3, 0); ModifyOtherUnitHealth (GetUnitID(), 100); ToggleArmor (GetUnitID()); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } label Leavin2: if (GetState() == 8 || GetState() == 0) { ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame(); goto Leavin2; } label Closer2: if (UnitDead () || GetState() == 9) { EndFrame(); goto End; } if (GetFollowWayID() != mobile) { ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame (); goto Closer2; } SetGlobalVar (1, GetGlobalVar(1) - 1); if (GetGlobalVar (1) == 0) { EnableControl(0, 1); EnableControl(1, 1); EnableControl(2, 1); EnableControl(3, 1); ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame (); goto Close2; } label Close2: if (UnitDead () || GetState() == 9) { EndFrame(); goto End; } if (GetFollowWayID() != mob2) { ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame (); goto Close2; } label InPosition2: if (GetFollowMode() != 3) { ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame(); goto InPosition2; } SetFollowRange(0); EnterVehicle (GetUnitID(), npfire2); ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } label There2: if (GetState() != 0) { ModifyOtherUnitHealth (GetUnitID(), 100); if (OnFire(GetUnitID())) { SetObjectTemp(GetUnitID(), 0); } EndFrame(); goto There2; } SetFollowRange(0); SelectWeapons (0,0,0); SetGlobalVar (2, GetGlobalVar(2) + 1); label End: EndFrame(); goto End; endscript; $