R3vo 2654 Posted January 18, 2015 Hey folk, I've wrote following script for singleplayer purpose. However, I want this script also to work for multiplayer now, but I can't really get my head around how I get the task,taskstate and countdown to be present for every player. //created by Revo /*["B_Heli_Transport_03_unarmed_F","true",_unloadPos,_countdown] execVM "crashSite.sqf"; ["className","boolean","markerPos",number] Zargabad positions [[4153,4060,0],[3913,4026,0],[4126,4259,0],[3901,4273,0],[3466,3574,0],[4095,3595,0],[4425,3467,0],[4473,3747,0],[4105,3940,0]]; Chernarus positions [[7242,9620,0],[4032,7898,0],[10346,4760,0],[1383,4508,0],[13702,2920,0],[12510,4490,0],[4703,9969,0],[1651,12152,0]]; */ if (isServer) then { sleep 600 + random 1200; _weaponPool = ["srifle_EBR_ARCO_pointer_snds_F","hgun_ACPC2_snds_F","arifle_MXC_SOS_point_snds_F","arifle_MXM_RCO_pointer_snds_F"]; _magazinePool = ["30Rnd_65x39_caseless_mag","9Rnd_45ACP_Mag","20Rnd_762x51_Mag"]; _rocketPool = ["Titan_AT","Titan_AP","NLAW_F"]; _RhseWeaponPool = ["rhs_weap_m16a4","rhs_weap_m14ebrri","rhs_weap_m4","rhs_weap_m240B"]; _RhseMagazinePool = ["rhsusf_100Rnd_762x51","20Rnd_762x51_Mag","rhs_mag_30Rnd_556x45_Mk262_Stanag"]; _RhseRocketPool = ["rhs_fgm148_magazine_AT","rhs_m136_mag","rhs_fim92_mag"]; _crashSitePosPool = [[7242,9620,0],[4032,7898,0],[10346,4760,0],[1383,4508,0],[13702,2920,0],[12510,4490,0],[4703,9969,0],[1651,12152,0]]; _heliType = _this select 0; _faction = _this select 1; _unloadPos = _this select 2; _taskState = 1; _countdown = _this select 3; _heli = _heliType createVehicle(_crashSitePosPool call BIS_fnc_selectRandom); _heli enableSimulationGlobal false; _cont1 = "B_Slingload_01_Cargo_F" createVehicle [(getPos _heli select 0) + 6, (getPos _heli select 1) - 6, getPos _heli select 2]; _cont2 = "B_CargoNet_01_ammo_F" createVehicle [(getPos _heli select 0) - 6, (getPos _heli select 1) + 7, getPos _heli select 2]; _cont3 = "B_CargoNet_01_ammo_F" createVehicle [(getPos _heli select 0) + 5, (getPos _heli select 1) + 5, getPos _heli select 2]; {_x allowDamage false; } forEach [_cont1,_cont2,_cont3]; sleep 1; _heli setDamage 1; sleep 20; {_x allowDamage true; } forEach [_cont1,_cont2,_cont3]; _cont1 setDamage 0.55; { clearWeaponCargoGlobal _x; clearBackpackCargoGlobal _x; clearMagazineCargoGlobal _x; clearItemCargoGlobal _x; } forEach [_cont1,_cont2,_cont3]; switch (_faction) do { case "true": { { _cont1 addWeaponCargo [_x,40]; } forEach _RhseWeaponPool; { _cont2 addMagazineCargo [_x,1000]; } forEach _RhseMagazinePool; { _cont3 addMagazineCargo [_x,10]; } forEach _RhseRocketPool; _AAA = [[(getPos _heli select 0) + 17, (getPos _heli select 1) - 25, getPos _heli select 2], EAST, ["rhs_zsu234_aa"],[],[],[],[],[],180] call BIS_fnc_spawnGroup; _patrol = [[(getPos _heli select 0) + 17, (getPos _heli select 1) - 25, getPos _heli select 2], EAST, ["rhs_msv_LAT","rhs_msv_sergeant","rhs_msv_aa","rhs_msv_at","rhs_msv_rifleman","rhs_msv_LAT","rhs_msv_sergeant","rhs_msv_aa","rhs_msv_at","rhs_msv_rifleman"],[],[],[],[],[],180] call BIS_fnc_spawnGroup; }; case "false": { { _cont1 addWeaponCargo [_x,40]; } forEach _weaponPool; { _cont2 addMagazineCargo [_x,1000]; } forEach _magazinePool; { _cont3 addMagazineCargo [_x,10]; } forEach _rocketPool; _AAA = [[(getPos _heli select 0) + 17, (getPos _heli select 1) - 25, getPos _heli select 2], EAST, ["O_APC_Tracked_02_AA_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup; _patrol = [[(getPos _heli select 0) + 17, (getPos _heli select 1) - 25, getPos _heli select 2], EAST, ["O_engineer_F","O_officer_F","O_Soldier_AT_F","O_Soldier_AA_F","O_Soldier_A_F","O_engineer_F","O_officer_F","O_Soldier_AT_F","O_Soldier_AA_F","O_Soldier_A_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup; }; }; _hq = [West,"HQ"]; //this [color="#FF0000"] _hq sideChat "To all units! We lost contact to one of our Chinook transport helicopters. We have to presume that they got shot down. Find and investigate the crash site ASAP!";[/color] sleep 5; createMarker ["crashSiteMarker", position _heli]; "crashSiteMarker" setMarkerColor "ColorUNKNOWN"; "crashSiteMarker" setMarkerSize [1500, 1500]; "crashSiteMarker" setMarkerBrush "DIAGGRID"; "crashSiteMarker" setMarkerShape "ELLIPSE"; "crashSiteMarker" setMarkerAlpha 0.7; createMarker ["dropZone", getMarkerPos _unloadPos]; "dropZone" setMarkerColor "ColorWEST"; "dropZone" setMarkerSize [20, 20]; "dropZone" setMarkerBrush "BORDER"; "dropZone" setMarkerShape "ELLIPSE"; createMarker ["dropZoneCenter", getMarkerPos _unloadPos]; "dropZoneCenter" setMarkerColor "ColorWEST"; "dropZoneCenter" setMarkerType "hd_end"; "dropZoneCenter" setMarkerText "Drop goods here!"; [color="#FF0000"]_task = player createSimpleTask ["Crash site"]; _task setSimpleTaskDescription ["Find and investigate the crash site. If possible, retrieve any goods the helicopter carried. Bring them to the marked position on the map.","Secure","Search the Area"]; _task setTaskState "Assigned"; ["TaskAssigned",["","Find and investigate the crash site."]] call BIS_fnc_showNotification;[/color] while {_taskState == 1} do { if ((_cont1 distance (getMarkerPos _unloadPos)<20) && (_cont2 distance (getMarkerPos _unloadPos)<20) && (_cont3 distance (getMarkerPos _unloadPos)<20)) then { sleep 10; [color="#FF0000"] _task setTaskState "Succeeded"; ["TaskSucceeded",["","Find and investigate the crash site."]] call BIS_fnc_showNotification; [/color] _taskState = 0; }; if(!alive _cont1 || !alive _cont2 || !alive _cont3 || (_countdown <=0)) then { sleep 10; _task setTaskState "Failed"; //This ["TaskFailed",["","Find and investigate the crash site."]] call BIS_fnc_showNotification; //This _taskState = 0; }; _timeLeft = _countdown - 1; _countdown = _countdown - 1; [color="#FF0000"]hintSilent format ["You've got %1 seconds left.",_timeLeft]; //[{hintSilent format ["You've got %1 seconds left.",_timeLeft];},[],true,true] call BIS_fnc_MP;[/color] sleep 1; }; }; I've marked all the lines which I think are vital for this script to work properly in multiplayer. Any help is apprechiated. Thanks in advance ;) Share this post Link to post Share on other sites
Wolfenswan 1 Posted January 18, 2015 BIS_fnc_MP is your savior. Learn to love it for we do not want to go back to the dark days of ARMA2. Anyway, while not elegant it would be sufficient to wrap all the lines you need to be executed for all clients into BIS_fnc_MP which spawns BIS_fnc_spawn. Example: _hq sideChat "To all units! We lost contact to one of our Chinook transport helicopters. We have to presume that they got shot down. Find and investigate the crash site ASAP!"; to [[[_hq],{(_this select 0) sideChat "To all units! We lost contact to one of our Chinook transport helicopters. We have to presume that they got shot down. Find and investigate the crash site ASAP!";}],"BIS_fnc_spawn",true] spawn BIS_fnc_MP; Share this post Link to post Share on other sites
R3vo 2654 Posted January 18, 2015 (edited) I'm unfortunately stuck again. How can I save the newly created task in a variable when created with BIS_fnc_MP, to afterwards set the task description etc. ? [[[player],{_task = (_this select 0) createSimpleTask ["Crash site"];}],"BIS_fnc_spawn",true] spawn BIS_fnc_MP; _descArray = ["Find and investigate the crash site. If possible, retrieve any goods the helicopter carried. Bring them to the marked position on the map.","Secure","Search the Area"];; [[[_task,_descArray],{(_this select 0) setSimpleTaskDescription (_this select 1);}],"BIS_fnc_spawn",true] spawn BIS_fnc_MP; [[[_task],{(_this select 0) setTaskState "Assigned";}],"BIS_fnc_spawn",true] spawn BIS_fnc_MP; That's what I tried, but it still says, undefined variable _task Edited January 18, 2015 by R3vo Share this post Link to post Share on other sites
Wolfenswan 1 Posted January 18, 2015 _task is local so it won't be known outside the current scope. You need to wrap that into a single call of BIS_fnc_MP: [color="#FF8040"][color="#1874CD"]_descArray[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"Find and investigate the crash site. If possible, retrieve any goods the helicopter carried. Bring them to the marked position on the map."[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"Secure"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"Search the Area"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_descArray[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_task[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]player[/color] [color="#191970"][b]createSimpleTask[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"Crash site"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_task[/color] [color="#191970"][b]setSimpleTaskDescription[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_task[/color] [color="#191970"][b]setTaskState[/b][/color] [color="#7A7A7A"]"Assigned"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"BIS_fnc_spawn"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]spawn[/b][/color] BIS_fnc_MP[color="#8B3E2F"][b];[/b][/color][/color] Made with KK's SQF to BBCode Converter That said, why don't you use the in-game modules for that? They work fine and you can use triggers to activate tasks during the mission. Share this post Link to post Share on other sites
R3vo 2654 Posted January 18, 2015 (edited) _task is local so it won't be known outside the current scope. You need to wrap that into a single call of BIS_fnc_MP: [color="#FF8040"][color="#1874CD"]_descArray[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"Find and investigate the crash site. If possible, retrieve any goods the helicopter carried. Bring them to the marked position on the map."[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"Secure"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"Search the Area"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_descArray[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_task[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]player[/color] [color="#191970"][b]createSimpleTask[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"Crash site"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_task[/color] [color="#191970"][b]setSimpleTaskDescription[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_task[/color] [color="#191970"][b]setTaskState[/b][/color] [color="#7A7A7A"]"Assigned"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"BIS_fnc_spawn"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]spawn[/b][/color] BIS_fnc_MP[color="#8B3E2F"][b];[/b][/color][/color] Made with KK's SQF to BBCode Converter That said, why don't you use the in-game modules for that? They work fine and you can use triggers to activate tasks during the mission. That would ofcourse be easier, but that way I will never learn how sqf works, properly. In addition, I have multiple multiplayer missions, where I want to add that script. So it's more work now, but less work later. And again thanks for your help ;) Edit: Script is working now. Really like the result ;) Thank you again Wolfenswan. And for folks who have got a similar problem, here is the working script: [color="#FF8040"][color="#006400"][i]//created by Revo[/i][/color] [color="#006400"][i]/*["B_Heli_Transport_03_unarmed_F","true",_unloadPos,_countdown] execVM "crashSite.sqf"; ["className","boolean","markerPos",number] Zargabad positions [[4153,4060,0],[3913,4026,0],[4126,4259,0],[3901,4273,0],[3466,3574,0],[4095,3595,0],[4425,3467,0],[4473,3747,0],[4105,3940,0]]; Chernarus positions [[7242,9620,0],[4032,7898,0],[10346,4760,0],[1383,4508,0],[13702,2920,0],[12510,4490,0],[4703,9969,0],[1651,12152,0]]; */[/i][/color] [color="#191970"][b]if[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]isServer[/b][/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]then[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#006400"][i]//sleep 600 + random 1200;[/i][/color] [color="#1874CD"]_weaponPool[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"srifle_EBR_ARCO_pointer_snds_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"hgun_ACPC2_snds_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"arifle_MXC_SOS_point_snds_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"arifle_MXM_RCO_pointer_snds_F"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_magazinePool[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"30Rnd_65x39_caseless_mag"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"9Rnd_45ACP_Mag"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_rocketPool[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"Titan_AT"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"Titan_AP"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"NLAW_F"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_RhseWeaponPool[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"rhs_weap_m16a4"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_weap_m14ebrri"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_weap_m4"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_weap_m240B"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_RhseMagazinePool[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"rhsusf_100Rnd_762x51"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_mag_30Rnd_556x45_Mk262_Stanag"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_RhseRocketPool[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"rhs_fgm148_magazine_AT"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_m136_mag"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_fim92_mag"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_crashSitePosPool[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#FF0000"]7242[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]9620[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#FF0000"]4032[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]7898[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#FF0000"]10346[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]4760[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#FF0000"]1383[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]4508[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#FF0000"]13702[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]2920[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#FF0000"]12510[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]4490[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#FF0000"]4703[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]9969[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#FF0000"]1651[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]12152[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_heliType[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_faction[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_unloadPos[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]2[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_taskState[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_countdown[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]3[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_heli[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#1874CD"]_heliType[/color] [color="#191970"][b]createVehicle[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_crashSitePosPool[/color] [color="#191970"][b]call[/b][/color] BIS_fnc_selectRandom[color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]enableSimulationGlobal[/b][/color] [color="#000000"]false[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_cont1[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#7A7A7A"]"B_Slingload_01_Cargo_F"[/color] [color="#191970"][b]createVehicle[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]+[/b][/color] [color="#FF0000"]6[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]-[/b][/color] [color="#FF0000"]6[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]2[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_cont2[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#7A7A7A"]"B_CargoNet_01_ammo_F"[/color] [color="#191970"][b]createVehicle[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]-[/b][/color] [color="#FF0000"]6[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]+[/b][/color] [color="#FF0000"]7[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]2[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_cont3[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#7A7A7A"]"B_CargoNet_01_ammo_F"[/color] [color="#191970"][b]createVehicle[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]+[/b][/color] [color="#FF0000"]5[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]+[/b][/color] [color="#FF0000"]5[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]2[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color][color="#000000"]_x[/color] [color="#191970"][b]allowDamage[/b][/color] [color="#000000"]false[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_cont1[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_cont2[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_cont3[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]sleep[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]setDamage[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]sleep[/b][/color] [color="#FF0000"]20[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color][color="#000000"]_x[/color] [color="#191970"][b]allowDamage[/b][/color] [color="#000000"]true[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_cont1[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_cont2[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_cont3[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_cont1[/color] [color="#191970"][b]setDamage[/b][/color] [color="#FF0000"]0.55[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]clearWeaponCargoGlobal[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]clearBackpackCargoGlobal[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]clearMagazineCargoGlobal[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]clearItemCargoGlobal[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_cont1[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_cont2[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_cont3[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]switch[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_faction[/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]do[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]case[/b][/color] [color="#7A7A7A"]"true"[/color][color="#8B3E2F"][b]:[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_cont1[/color] [color="#191970"][b]addWeaponCargo[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#000000"]_x[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]40[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_RhseWeaponPool[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_cont2[/color] [color="#191970"][b]addMagazineCargo[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#000000"]_x[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]1000[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_RhseMagazinePool[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_cont3[/color] [color="#191970"][b]addMagazineCargo[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#000000"]_x[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]10[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_RhseRocketPool[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_AAA[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]+[/b][/color] [color="#FF0000"]17[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]-[/b][/color] [color="#FF0000"]25[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]2[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color] [color="#000000"]east[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"rhs_zsu234_aa"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]180[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_spawnGroup[color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_patrol[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]+[/b][/color] [color="#FF0000"]17[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]-[/b][/color] [color="#FF0000"]25[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]2[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color] [color="#000000"]east[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"rhs_msv_LAT"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_msv_sergeant"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_msv_aa"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_msv_at"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_msv_rifleman"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_msv_LAT"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_msv_sergeant"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_msv_aa"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_msv_at"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"rhs_msv_rifleman"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]180[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_spawnGroup[color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]case[/b][/color] [color="#7A7A7A"]"false"[/color][color="#8B3E2F"][b]:[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_cont1[/color] [color="#191970"][b]addWeaponCargo[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#000000"]_x[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]40[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_weaponPool[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_cont2[/color] [color="#191970"][b]addMagazineCargo[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#000000"]_x[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]1000[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_magazinePool[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_cont3[/color] [color="#191970"][b]addMagazineCargo[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#000000"]_x[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]10[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_rocketPool[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_AAA[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]+[/b][/color] [color="#FF0000"]17[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]-[/b][/color] [color="#FF0000"]25[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]2[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color] [color="#000000"]east[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"O_APC_Tracked_02_AA_F"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]180[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_spawnGroup[color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_patrol[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]+[/b][/color] [color="#FF0000"]17[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]-[/b][/color] [color="#FF0000"]25[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_heli[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]2[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color] [color="#000000"]east[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"O_engineer_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"O_officer_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"O_Soldier_AT_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"O_Soldier_AA_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"O_Soldier_A_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"O_engineer_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"O_officer_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"O_Soldier_AT_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"O_Soldier_AA_F"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"O_Soldier_A_F"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]180[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_spawnGroup[color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_chat[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#7A7A7A"]"To all units! We lost contact to one of our Chinook transport helicopters. We have to presume that they got shot down. Find and investigate the crash site ASAP!"[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_hq[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#000000"]west[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"HQ"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_hq[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_chat[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]{[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]sideChat[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color][color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"BIS_fnc_spawn"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]spawn[/b][/color] BIS_fnc_MP[color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]sleep[/b][/color] [color="#FF0000"]5[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]createMarker[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"crashSiteMarker"[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]position[/b][/color] [color="#1874CD"]_heli[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"crashSiteMarker"[/color] [color="#191970"][b]setMarkerColor[/b][/color] [color="#7A7A7A"]"ColorUNKNOWN"[/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"crashSiteMarker"[/color] [color="#191970"][b]setMarkerSize[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#FF0000"]1500[/color][color="#8B3E2F"][b],[/b][/color] [color="#FF0000"]1500[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"crashSiteMarker"[/color] [color="#191970"][b]setMarkerBrush[/b][/color] [color="#7A7A7A"]"DIAGGRID"[/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"crashSiteMarker"[/color] [color="#191970"][b]setMarkerShape[/b][/color] [color="#7A7A7A"]"ELLIPSE"[/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"crashSiteMarker"[/color] [color="#191970"][b]setMarkerAlpha[/b][/color] [color="#FF0000"]0.7[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]createMarker[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"dropZone"[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]getMarkerPos[/b][/color] [color="#1874CD"]_unloadPos[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"dropZone"[/color] [color="#191970"][b]setMarkerColor[/b][/color] [color="#7A7A7A"]"ColorWEST"[/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"dropZone"[/color] [color="#191970"][b]setMarkerSize[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#FF0000"]20[/color][color="#8B3E2F"][b],[/b][/color] [color="#FF0000"]20[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"dropZone"[/color] [color="#191970"][b]setMarkerBrush[/b][/color] [color="#7A7A7A"]"BORDER"[/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"dropZone"[/color] [color="#191970"][b]setMarkerShape[/b][/color] [color="#7A7A7A"]"ELLIPSE"[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]createMarker[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"dropZoneCenter"[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]getMarkerPos[/b][/color] [color="#1874CD"]_unloadPos[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"dropZoneCenter"[/color] [color="#191970"][b]setMarkerColor[/b][/color] [color="#7A7A7A"]"ColorWEST"[/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"dropZoneCenter"[/color] [color="#191970"][b]setMarkerType[/b][/color] [color="#7A7A7A"]"hd_end"[/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"dropZoneCenter"[/color] [color="#191970"][b]setMarkerText[/b][/color] [color="#7A7A7A"]"Drop goods here!"[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_descArray[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"Find and investigate the crash site. If possible, retrieve any goods the helicopter carried. Bring them to the marked position on the map."[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"Crash site"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"Search the Area"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_descArray[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]{[/b][/color] task [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]player[/color] [color="#191970"][b]createSimpleTask[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"Crash site"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] task [color="#191970"][b]setSimpleTaskDescription[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color] task [color="#191970"][b]setTaskState[/b][/color] [color="#7A7A7A"]"Assigned"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"TaskAssigned"[/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]""[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"Find and investigate the crash site."[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_showNotification[color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"BIS_fnc_spawn"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]spawn[/b][/color] BIS_fnc_MP[color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]while[/b][/color] [color="#8B3E2F"][b]{[/b][/color][color="#1874CD"]_taskState[/color] [color="#8B3E2F"][b]=[/b][/color][color="#8B3E2F"][b]=[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]do[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]if[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_cont1[/color] [color="#191970"][b]distance[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getMarkerPos[/b][/color] [color="#1874CD"]_unloadPos[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b]<[/b][/color][color="#FF0000"]20[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]&[/b][/color][color="#8B3E2F"][b]&[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_cont2[/color] [color="#191970"][b]distance[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getMarkerPos[/b][/color] [color="#1874CD"]_unloadPos[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b]<[/b][/color][color="#FF0000"]20[/color][color="#8B3E2F"][b])[/b][/color] [color="#8B3E2F"][b]&[/b][/color][color="#8B3E2F"][b]&[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_cont3[/color] [color="#191970"][b]distance[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getMarkerPos[/b][/color] [color="#1874CD"]_unloadPos[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b]<[/b][/color][color="#FF0000"]20[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]then[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]sleep[/b][/color] [color="#FF0000"]10[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]{[/b][/color]task [color="#191970"][b]setTaskState[/b][/color] [color="#7A7A7A"]"Succeeded"[/color][color="#8B3E2F"][b];[/b][/color][color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"BIS_fnc_spawn"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]spawn[/b][/color] BIS_fnc_MP[color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]{[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"TaskSucceeded"[/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]""[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"Find and investigate the crash site."[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_showNotification[color="#8B3E2F"][b];[/b][/color][color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"BIS_fnc_spawn"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]spawn[/b][/color] BIS_fnc_MP[color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_taskState[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]if[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#8B3E2F"][b]![/b][/color][color="#191970"][b]alive[/b][/color] [color="#1874CD"]_cont1[/color] [color="#8B3E2F"][b]|[/b][/color][color="#8B3E2F"][b]|[/b][/color] [color="#8B3E2F"][b]![/b][/color][color="#191970"][b]alive[/b][/color] [color="#1874CD"]_cont2[/color] [color="#8B3E2F"][b]|[/b][/color][color="#8B3E2F"][b]|[/b][/color] [color="#8B3E2F"][b]![/b][/color][color="#191970"][b]alive[/b][/color] [color="#1874CD"]_cont3[/color] [color="#8B3E2F"][b]|[/b][/color][color="#8B3E2F"][b]|[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_countdown[/color] [color="#8B3E2F"][b]<[/b][/color][color="#8B3E2F"][b]=[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]then[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]sleep[/b][/color] [color="#FF0000"]10[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]{[/b][/color]task [color="#191970"][b]setTaskState[/b][/color] [color="#7A7A7A"]"Failed"[/color][color="#8B3E2F"][b];[/b][/color][color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"BIS_fnc_spawn"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]spawn[/b][/color] BIS_fnc_MP[color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]{[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"TaskFailed"[/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]""[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"Find and investigate the crash site."[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_showNotification[color="#8B3E2F"][b];[/b][/color][color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"BIS_fnc_spawn"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]spawn[/b][/color] BIS_fnc_MP[color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_taskState[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_timeLeft[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#1874CD"]_countdown[/color] [color="#8B3E2F"][b]-[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_countdown[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#1874CD"]_countdown[/color] [color="#8B3E2F"][b]-[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]hintSilent[/b][/color] [color="#191970"][b]format[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"You've got %1 seconds left."[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_timeLeft[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]sleep[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color][/color] Made with KK's SQF to BBCode Converter Edited January 18, 2015 by R3vo Share this post Link to post Share on other sites