; Unload cargo

? (WhatC != player) and alive WhatC and not (RusHere) and ((WhatC distance InvH) < 150) : goto "YES"


aB1 setpos getmarkerpos "Unl1";
aB2 setpos getmarkerpos "Unl2";

exit

#YES

setAccTime 1;
goBMP = true;

aB1 setPos [(getMarkerPos "Unl1" select 0)+20, (getMarkerPos "Unl1" select 1)];
aB2 setPos [(getMarkerPos "Unl2" select 0)+20, (getMarkerPos "Unl2" select 1)];

titleCut ["","BLACK OUT", 1]
~1

WhatC setPos getPos InvH;
_pos1 = getPos aS;
_pos2 = getPos aS2;

aS setPos [(getMarkerPos "Unl1" select 0)+22, (getMarkerPos "Unl1" select 1)];
aS2 setPos [(getMarkerPos "Unl2" select 0)+22, (getMarkerPos "Unl2" select 1)];

titleCut ["","BLACK IN", 1]

_camera = "camera" camCreate [8388.39,4348.80,0.74] 
_camera cameraEffect ["internal","back"]

;=== 21:10:38
_camera camSetTarget [76891.28,74596.61,2784.35]
_camera camSetPos [2107.11,8267.46,1.31]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

~1

aS switchMove "CombatToPutDown";
~1
aS2 switchMove "CombatToPutDown";
~2

aS doMove [(getMarkerPos "Meet" select 0)+5, (getMarkerPos "Meet" select 1)];
aS2 doMove [(getMarkerPos "Meet" select 0)+10, (getMarkerPos "Meet" select 1)+4];

~5

;=== 21:15:36
_camera camSetTarget [75842.95,75704.62,3992.67]
_camera camSetPos [2084.67,8296.83,2.09]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

@unitReady aS;
aS switchMove "CombatToPutDown";
~1
aS2 switchMove "CombatToPutDown";
~2

aS doMove [(getMarkerPos "Unl1" select 0)+22, (getMarkerPos "Unl1" select 1)];
aS2 doMove [(getMarkerPos "Unl2" select 0)+22, (getMarkerPos "Unl2" select 1)];

~8

titleCut ["","BLACK OUT", 5]
~5

aS setPos _pos1;
aS2 setPos _pos2;

clearWeaponCargo aB1;
clearWeaponCargo aB2;
clearMagazineCargo aB1;
clearMagazineCargo aB2;

clearweaponcargo WhatC; clearmagazinecargo WhatC; WhatC addweaponcargo ["AALauncher", 4]; WhatC addmagazinecargo ["AALauncher", 12]; WhatC addweaponcargo ["M4", 6];
WhatC addmagazinecargo ["M4", 60]; WhatC addmagazinecargo ["HandGrenade", 60]; WhatC addWeaponCargo ["M21",2]; WhatC addMagazineCargo ["M21", 20];
WhatC addWeaponCargo ["Steyr", 4]; WhatC addMagazineCargo ["SteyrMag", 40]; WhatC addWeaponCargo ["HK", 2]; WhatC addMagazineCargo ["HK", 12];
WhatC addMagazineCargo ["PipeBomb",6]; WhatC addWeaponCargo ["FAL", 4]; WhatC addMagazineCargo ["FALMag", 20]; WhatC addWeaponCargo ["HKG3", 4];
WhatC addMagazineCargo ["HKG3Mag", 20]; WhatC addWeaponCargo ["Beretta", 2]; WhatC addMagazineCargo ["BerettaMag", 20];
WhatC addWeaponCargo ["NVGoggles", 4]; WhatC addWeaponCargo ["RPGLauncher", 4]; WhatC addMagazineCargo ["RPGLauncher", 8];

player cameraEffect ["terminate","back"]
camDestroy _camera

titleCut ["","BLACK IN", 1]

aP sideRadio "M12r01";
