-
Content Count
4330 -
Joined
-
Last visited
-
Medals
-
Medals
Everything posted by R3vo
-
They don't need to. I've got my mods in an extra "mod" folder. However, I'm not using the original A3 Lauchner.
-
Enemy occupation system (eos)
R3vo replied to bangabob's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You could try something like this: [color="#FF8040"][color="#191970"][b]while[/b][/color] [color="#8B3E2F"][b]{[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]do[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]if[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]side[/b][/color] [color="#000000"]_x[/color] [color="#8B3E2F"][b]=[/b][/color][color="#8B3E2F"][b]=[/b][/color] [color="#000000"]civilian[/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]then[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMPEventHandler[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"whatever"[/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="#191970"][b]forEach[/b][/color] [color="#191970"][b]allUnits[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]sleep[/b][/color] [color="#FF0000"]5[/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 However,I'm currently not able to test this myself. -
unit addEventHandler ["respawn", { (uniformContainer (_this select 0)) addItemCargoGlobal ["cse_bandage_basic", 5]; (uniformContainer (_this select 0)) addItemCargoGlobal ["cse_tourniquet", 3]; (uniformContainer (_this select 0)) addItemCargoGlobal ["cse_morphine",1]; }]; You could try something like this, however, I've not yet worked with evenHandlers myself. I'm not quite sure if they get deleted after a unit has respawned.
-
For what frickin' reason would you need 150 AI in SP ? Do you even know how much 150 is ?
-
Need help with making script MP compatible
R3vo replied to R3vo's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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 -
Need help with making script MP compatible
R3vo posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
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 ;) -
Need help with making script MP compatible
R3vo replied to R3vo's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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 -
Authentic Gameplay Modification
R3vo replied to koffeinflummi's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Are you using vanilla units? Or custom ones? Maybe they are not properly defined as engineer or explosive specialist in their configs. You a guess. -
Yep, I posted that earlier and was hoping for a reply from opticalsnare. Really hope there is a way to make it look better.
-
Authentic Gameplay Modification
R3vo replied to koffeinflummi's topic in ARMA 3 - ADDONS & MODS: COMPLETE
There is a module called "AGM Medical". Place it in your mission, and set the parameters to you liking. ---------- Post added at 12:28 ---------- Previous post was at 12:26 ---------- Have you used this setVariable ["AGM_IsEOD", true]; in the init of your unit? -
Arma 3 (STABLE) 1.48.131785+ stress-test MP (MultiPlayer)
R3vo replied to Dwarden's topic in ARMA 3 - MULTIPLAYER
Are you talking about the lag ? I experienced that issue yesterday, for the first time and it's really annoying. -
Authentic Gameplay Modification
R3vo replied to koffeinflummi's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Is anyone else having problems with Epipen not working ? It always says, action canceled, and even if the actings is performed properly it doesn't work. -
Is this going to work for all AIs, if I put the addon version on the server only? Or do clients need it, too?
-
[RELEASE] AUSMD Editing Tool
R3vo replied to austin_medic's topic in ARMA 3 - COMMUNITY MADE UTILITIES
That's a great too you created there. What do you think about adding a "Create Briefing" button? -
while {true} do { sleep 60; {zCurator addCuratorEditableObjects [[_x],true]} foreach vehicles; { if (side _x == west) then { zCurator addCuratorEditableObjects [[_x],true]; }; if (side _x == east) then { zCurator addCuratorEditableObjects [[_x],true]; }; if (side _x == independent) then { zCurator addCuratorEditableObjects [[_x],true]; }; }foreach allUnits; }; Maybe that helps you, it was original writte to add units to Zeus which where added by script. Edit: The script above is outdated. With version 2.02 there will be allUnits <side> which is way faster!
-
It does, just keep in mind that it may slow down you Arma 3 startup process, if you use large mods.
-
Toadie's SmallArms and Animations for Arma3
R3vo replied to toadie2k's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Just wondering, do we still need the JSRS soundfix pbos ? -
This does absolutely nothing for me.
-
immersion mod bundle Immerse by Jokoho482 and LAxemann
R3vo replied to laxemann's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Can anybody confirm that the server key is working? -
Search your RPT file for errors. This map works without any trouble in MP and SP.
-
Authentic Gameplay Modification
R3vo replied to koffeinflummi's topic in ARMA 3 - ADDONS & MODS: COMPLETE
In addition, the new Humvees do not explode properly when AGM is running. They get damaged, but they drive normally. -
RHS Escalation (AFRF and USAF)
R3vo replied to soul_assassin's topic in ARMA 3 - ADDONS & MODS: COMPLETE
This issue is caused by the cookoff feature of AGM. It's fine without it. Sorry for the inconvenience.- 16577 replies
-
- Weapons
- Accessories
-
(and 1 more)
Tagged with:
-
RHS Escalation (AFRF and USAF)
R3vo replied to soul_assassin's topic in ARMA 3 - ADDONS & MODS: COMPLETE
I'll do further testing.- 16577 replies
-
- Weapons
- Accessories
-
(and 1 more)
Tagged with:
-
RHS Escalation (AFRF and USAF)
R3vo replied to soul_assassin's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Found another bug: Even though the "rhsusf_m1025_d_Mk19" is completely damaged (3 rpg rockets), it can still drive normally. This also applies to other Humvee variants.- 16577 replies
-
- Weapons
- Accessories
-
(and 1 more)
Tagged with:
-
RHS Escalation (AFRF and USAF)
R3vo replied to soul_assassin's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Here is my personel dropbox link, which my community uses, don't expect insane speeds *Link removed, bandwith limit exceeded lol* Pm me if you need a link- 16577 replies
-
- Weapons
- Accessories
-
(and 1 more)
Tagged with: