Jump to content

KooZ

Member
  • Content Count

    15
  • Joined

  • Last visited

  • Medals

Everything posted by KooZ

  1. I found a major bug in LEA! There are no aviator glasses under the glasses category! This is a matter of extreme importance! The greek ladies won't look at me no more!
  2. I'm lefthanded and use the Numpad keys to lean and lock backwards, this radio "mod" hard binds stuff to those keys, is it possible that you provide a file so people like my can change their keys? Ninjadit: Disregard :/
  3. https://dl.dropboxusercontent.com/u/9457412/Mission%25202.Altis.rar I've been working on a hostage rescue script, for my mission, but for some reason the rescue the hostages task is not working as I tought it should.. Right now, I have to delete aa_1;aa_2;aa_3;aa_4;aa_5 for the task to be created, so far so good, it's meant to be like this! But after entering the host_join trigger, it does not complete the task. You can see, there is a Task Set State - Sucess trigger by a "TriggerActivated host_join", the trigger does it's job, but the task remains unchanged. Same goes for failed - "(!alive host1) AND (!alive host2)" also doesn't trigger the Set Task State Failed. I got no idea why it ain't working :/ (The hostage rescue is located at Eginio, middle southern zone of the peninsula.)
  4. _t1 = (triggeractivated radioflare); _t2 = (triggeractivated aaflare1); _t3 = (triggeractivated aaflare2); _t4 = (triggeractivated aaflare3); _t5 = (triggeractivated aaflare4); _t6 = (triggeractivated aaflare5); hint format ["1 %1 2 %1 3 %1 4 %1 5 %1 6 %1",_t1, _t2, _t3, _t4, _t5, _t6]; if (_t1) then { _posX = (getPos flareradio select 0) + (random 50) - (random 50); _posY = (getPos flareradio select 1) + (random 50) - (random 50); _posZ = (getPos flareradio select 2) + (random 50) - (random 50); _pos = "Radio"; }; if (_t2) then { _posX = (getPos aaflare1 select 0) + (random 50) - (random 50); _posY = (getPos aaflare1 select 1) + (random 50) - (random 50); _posZ = (getPos aaflare1 select 2) + (random 50) - (random 50); _pos = "AA1"; }; if (_t3) then { _posX = (getPos aaflare2 select 0) + (random 50) - (random 50); _posY = (getPos aaflare2 select 1) + (random 50) - (random 50); _posZ = (getPos aaflare2 select 2) + (random 50) - (random 50); _pos = "AA2"; }; if (_t4) then { _posX = (getPos aaflare3 select 0) + (random 50) - (random 50); _posY = (getPos aaflare3 select 1) + (random 50) - (random 50); _posZ = (getPos aaflare3 select 2) + (random 50) - (random 50); _pos = "AA3"; }; if (_t5) then { _posX = (getPos aaflare4 select 0) + (random 50) - (random 50); _posY = (getPos aaflare4 select 1) + (random 50) - (random 50); _posZ = (getPos aaflare4 select 2) + (random 50) - (random 50); _pos = "AA4"; }; if (_t6) then { _posX = (getPos aaflare5 select 0) + (random 50) - (random 50); _posY = (getPos aaflare5 select 1) + (random 50) - (random 50); _posZ = (getPos aaflare5 select 2) + (random 50) - (random 50); _pos = "AA5"; }; sleep (random 5); while {true} do { flare1 = "F_20mm_red" createVehicle ((_posX, _posY, _posZ) ModelToWorld [0,100,200]); flare1 setVelocity [0,0,-10]; hint format ["Flare Deployed at %1 ",_pos]; sleep (random 5); }; if (false) exitWith {}; I've been trying to light up a flare for differente spots on altis, being 1 radio tower and 5 AA tigris sites. There is a trigger for "Blufor is spotted by Opfor (repeat)" and it calls the script shown ahead. The if's are meant to discover what trigger was activated and they ll define the position where the flare will spawn. I could easily make a different script for each zone, but that would be unnecessary and I'll later make a backup script that will work around with the positions given on this script, say , It will call backup.sqf and it will pick a random unit (within 6) to answer the backup call IF the radio tower is alive. It's is showing a error: radioflare (it's the trigger's name) undefined variable.
  5. Couldn't I just work around the global variable instead of making a local one? Say: If Gradioflare=True then getpos radioflare
  6. Bumping the thread again: I've read around that Left ALT usually changes the altitude for a object in the editor, I'm left handed so I created a new profile to use in the editor with the default keys, but still, ALT and CTRL do nothing to me, only shift. Is there a specific key that needs to be binded in order for the altitude changer to work ? I've been trying to change some control another key see if it would fix and noticed that I cannot bind anything to Left Alt, this might be the source of the problem; Tried to change all left alt and left control to right alt and right control but no effect;
  7. I did, people sometimes showed up that they can't use control or alt (no effect) but no solution to it, i've created another profile that uses defaults keys but still nothing (im left handed)
  8. I've been wandering around into the 3d editor and read almost everything there is to be read in the forums but I still can't change the altitude on my objects, only shift click works (so alt and ctrl do nothing) Any help ? I need to get a static machine gun on top of a Bunker Tower. Also, I've had this problem for a long time ago, is there a way to block tab scrolling on menus ? It's a pain to do Ctrl+Alt+Del everytime I need to go to my desktop..
  9. I do not intend to have the caches spawn at the beginning of the map, as they are to be parachuted via C130J, AI Controlled, and trough random map spawns. I've read a good couple of topics, mainly about cleaning a default cache and adding new weapons, I do not think this applies to what I wish to do. The randomly spawned caches need to have custom content, for I do not want any TWS weapons in the mission. I've wandered around at a couple of missions that had the option to ask for a supply drop but nothing conclusive. For example, setting these caches: US Basic: M249 Scope M4A1 CCO M4A1 ACOG ... Snipers: DMR M24 L115A1 ... Local Weapons: AK-74 AKM AK-107 PSO ... I want these to randomly spawn at every town, in a total of 20 per map for example, what sort of script do I need to use to make this possible ?
  10. Would that help with lag this script may cause ? If switch helps reducing lag, I'll later do it.
  11. Can you only edit one more thing ? I need to make _boxes a variable that travels trough script.
  12. Thanks, that should do the trick, I'll start working on the the content for every cache! And thanks again :) private ["_marker","_boxes","_town","_newpos","_numb","_boxnum","_box","_townpos","_towns"]; if (isServer) then { if (CVG_Caches == 1) then { boxes = 20; // Starting point every island should have... _towns = towns; while {boxes > 0} do { _boxes = ["TKBasicWeapons_EP1","RuBasicWeaponsBox","LocalBasicWeaponsBox","RUSpecialWeaponsBox","USBasicWeaponsBox","UNBasicWeaponsBox_EP1","GerBasicWeapons_EP1","BAF_BasicWeapons","AmmoBox_PMC","USBasicWeapons_EP1","USSpecialWeapons_EP1","USSpecialWeapons","TKSpecialWeapons_EP1","GuerillaCacheBox"]; _town = _towns call BIS_fnc_selectRandom; _newpos = getpos _town; _townpos = [_newpos, 10, 100, 1, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos; _numb = (count _boxes); _boxnum = floor (random _numb); _box = _boxes select _boxnum; _box = createVehicle [_box,_townpos,[], 0, "NONE"]; nul = [_box] execVM "fill_crate.sqf"; boxes = boxes - 1; }; }; }; private ["_crate"]; // Get the crate _crate = _this Select 0; // Remove the stock items from the crate ClearMagazineCargo _crate; ClearWeaponCargo _crate; if _boxes = TKBasicWeapons_EP1 { // Add items _crate AddWeaponCargo ["AK_47_M", 5]; _crate AddWeaponCargo ["AK_47_S", 5]; //_crate AddWeaponCargo ["AK_GOLD", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 50]; _crate AddWeaponCargo ["AK-74", 5]; _crate AddWeaponCargo ["AK_74_GL", 5]; _crate AddWeaponCargo ["AK-74_GL_Kobra", 5]; _crate AddWeaponCargo ["AKS_74", 5]; _crate AddWeaponCargo ["AKS-74_Kobra", 5]; //_crate AddWeaponCargo ["AKS_74_un_kobra", 5]; _crate AddWeaponCargo ["AKS_74_u", 5]; _crate AddWeaponCargo ["AKS-74_PSO", 5]; _crate AddWeaponCargo ["AKS_74_NSPU", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 200]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 20]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A4", 3]; _crate AddWeaponCargo ["M16A4_ACG", 2]; _crate AddMagazineCargo ["30Rnd_556x45_Stanag", 50]; _crate AddWeaponCargo ["FN_FAL", 5]; _crate AddWeaponCargo ["FN_FAL_ANPVS4", 5]; _crate AddMagazineCargo ["20Rnd_762x51_FNFAL", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate AddWeaponCargo ["SVD", 3]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 20]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = RuBasicWeaponsBox { _crate AddWeaponCargo ["AK_47_M", 10]; _crate AddWeaponCargo ["AK_47_S", 10]; _crate AddWeaponCargo ["AK_GOLD", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddWeaponCargo ["AK_107_GL_kobra", 5]; _crate AddWeaponCargo ["AK_107_GL_PSO", 5]; _crate AddWeaponCargo ["AK_107_kobra", 5]; _crate AddWeaponCargo ["AK_107_pso", 5]; _crate AddWeaponCargo ["AK-74", 5]; _crate AddWeaponCargo ["AK_74_GL", 5]; _crate AddWeaponCargo ["AK-74_GL_Kobra", 5]; _crate AddWeaponCargo ["AKS_74", 5]; _crate AddWeaponCargo ["AKS-74_Kobra", 5]; //_crate AddWeaponCargo ["AKS_74_un_kobra", 5]; _crate AddWeaponCargo ["AKS_74_u", 5]; _crate AddWeaponCargo ["AKS-74_PSO", 5]; _crate AddWeaponCargo ["AKS_74_NSPU", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 300]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 20]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate AddWeaponCargo ["SVD", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 50]; _crate AddWeaponCargo ["Bizon", 5]; _crate AddMagazineCargo ["64Rnd_9x19_Bizon", 50]; _crate AddWeaponCargo ["Sasiga12K", 5]; _crate AddMagazineCargo ["8Rnd_B_Saiga12_74Slug", 25]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = LocalBasicWeaponsBox _crate AddWeaponCargo ["LeeEnfield", 20]; _crate AddMagazineCargo ["10x_303", 100]; _crate AddWeaponCargo ["AKS_74", 10]; _crate AddWeaponCargo ["AKS-74_PSO", 10]; _crate AddWeaponCargo ["AK-74", 15]; _crate AddWeaponCargo ["AK_74_GL", 15]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 300]; _crate AddWeaponCargo ["AK_47_M", 5]; _crate AddWeaponCargo ["AK_47_S", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 50]; //_crate AddWeaponCargo ["SVD", 2]; //_crate AddMagazineCargo ["10Rnd_762x54_SVD", 15]; _crate AddWeaponCargo ["Huntingrifle", 5]; _crate AddMagazineCargo ["5x_22_LR_17_HMR", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate addMagazineCargo ["HandGrenade_East", 10]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = RUSpecialWeaponsBox { _crate AddWeaponCargo ["AK_GOLD", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 50]; _crate AddWeaponCargo ["AK_107_GL_kobra", 5]; _crate AddWeaponCargo ["AK_107_GL_PSO", 5]; _crate AddWeaponCargo ["AK_107_kobra", 5]; _crate AddWeaponCargo ["AK_107_pso", 5]; _crate AddWeaponCargo ["AKS_74_un_kobra", 5]; _crate AddWeaponCargo ["AKS_74_NSPU", 5]; _crate AddWeaponCargo ["AKS_74_GOSHAWK", 3]; //THERMAL _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 50]; _crate AddWeaponCargo ["SVD", 5]; _crate AddWeaponCargo ["SVD_CAMO", 5]; _crate AddWeaponCargo ["SVD_des_ep1", 5]; _crate AddWeaponCargo ["SVD_NSPU", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 100]; _crate AddWeaponCargo ["VSS_vintorez", 5]; _crate AddMagazineCargo [10Rnd_9x39_SP5_VSS", 50]; _crate AddWeaponCargo ["KSVK", 5]; _crate AddMagazineCargo ["5Rnd_127x108_KSVK", 50]; _crate AddWeaponCargo ["Bizon_silenced", 5]; _crate AddMagazineCargo ["64Rnd_9x19_SD_Bizon", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddWeaponCargo ["Pecheneg", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 100]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 50]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = USBasicWeaponsBox { _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A2GL", 5]; _crate AddWeaponCargo ["M16A4", 5]; _crate AddWeaponCargo ["M16A4_acg", 5]; _crate AddWeaponCargo ["M16A4_gl", 5]; _crate AddWeaponCargo ["M16A4_acg_gl", 5]; _crate AddWeaponCargo ["M4A1", 5]; _crate AddWeaponCargo ["M4A1_Aim", 5]; _crate AddWeaponCargo ["M4A1_hws_gl", 5]; _crate AddWeaponCargo ["m4a1_rco_gl", 5]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["m4spr", 3]; _crate AddWeaponCargo ["M1014", 5]; _crate AddMagazineCargo ["8Rnd_B_Beneli_74Slug", 25]; _crate AddWeaponCargo ["mp5a5", 5]; _crate AddMagazineCargo ["30Rnd_9x19_MP5", 100]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 300]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = UNBasicWeaponsBox_EP1 //Nerf maybe? { //AMERICAN _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A2GL", 5]; _crate AddWeaponCargo ["M16A4", 5]; _crate AddWeaponCargo ["M16A4_acg", 5]; _crate AddWeaponCargo ["M16A4_gl", 5]; _crate AddWeaponCargo ["M16A4_acg_gl", 5]; _crate AddWeaponCargo ["M4A1", 5]; _crate AddWeaponCargo ["M4A1_Aim", 5]; _crate AddWeaponCargo ["M4A1_hws_gl", 5]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["m4spr", 3]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; //RUSSIAN _crate AddWeaponCargo ["AK_47_M", 10]; _crate AddWeaponCargo ["AK_47_S", 10]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddWeaponCargo ["AK-74", 5]; _crate AddWeaponCargo ["AK_74_GL", 5]; _crate AddWeaponCargo ["AK-74_GL_Kobra", 5]; _crate AddWeaponCargo ["AKS_74", 5]; _crate AddWeaponCargo ["AKS-74_Kobra", 5]; _crate AddWeaponCargo ["AKS_74_u", 5]; _crate AddWeaponCargo ["AKS-74_PSO", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 300]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 20]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate AddWeaponCargo ["SVD", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = GerBasicWeapons_EP1 { _crate AddWeaponCargo ["G36_c_SD_eotech", 5]; _crate AddWeaponCargo ["G36a", 5]; _crate AddWeaponCargo ["G36c", 5]; _crate AddWeaponCargo ["G36k", 5]; _crate AddWeaponCargo ["MG36", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_556x45_BetaCMag", 100]; //_crate AddWeaponCargo ["m4spr", 3]; //_crate addMagazineCargo ["30Rnd_556x45_Stanag", 50]; _crate AddWeaponCargo ["Huntingrifle", 5]; _crate AddMagazineCargo ["5x_22_LR_17_HMR", 50]; _crate addMagazineCargo ["30Rnd_556x45_G36", 300]; _crate addMagazineCargo ["30Rnd_556x45_G36SD", 300]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = BAF_BasicWeapons { _crate AddWeaponCargo ["BAF_L85A2_RIS", 5]; _crate AddWeaponCargo ["BAF_L85A2_RIS_Holo", 5]; _crate AddWeaponCargo ["BAF_L85A2_RIS_SUSAT", 5]; _crate AddWeaponCargo ["BAF_L85A2_UGL_ACOG", 5]; _crate AddWeaponCargo ["BAF_L85A2_UGL_Holo", 5]; _crate AddWeaponCargo ["BAF_L85A2_UGL_Susat", 5]; _crate AddWeaponCargo ["BAF_L85A2_ACOG", 5]; _crate AddWeaponCargo ["BAF_L110A1_Aim", 5]; _crate AddWeaponCargo ["BAF_L7A2_GPMG", 5]; _crate AddMagazineCargo ["200Rnd_556x45_L110A1", 20]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 20]; _crate AddWeaponCargo ["BAF_LRR_scoped", 5]; _crate AddMagazineCargo ["5Rnd_86x70_L115A1", 20]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = AmmoBox_PMC { _crate AddWeaponCargo ["m8_carbine", 5]; _crate AddWeaponCargo ["m8_carbine_pmc", 5]; _crate AddWeaponCargo ["m8_carbineGL", 5]; _crate AddWeaponCargo ["m8_compact", 5]; _crate AddWeaponCargo ["m8_compact_pmc", 5]; _crate AddWeaponCargo ["m8_holo_sd", 5]; _crate AddWeaponCargo ["m8_SAW", 5]; _crate AddWeaponCargo ["m8_sharpshooter", 5]; _crate addMagazineCargo ["30Rnd_556x45_G36SD", 50]; _crate addMagazineCargo ["100Rnd_556x45_BetaCMag", 100]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = USBasicWeapons_EP1 //Possibly US Army Basic Weapons { _crate AddWeaponCargo ["SCAR_L_CQC", 5]; _crate AddWeaponCargo ["SCAR_L_CQC_CCO_SD", 5]; _crate AddWeaponCargo ["SCAR_L_CQC_EGLM_Holo", 5]; _crate AddWeaponCargo ["SCAR_L_CQC_Holo", 5]; _crate AddWeaponCargo ["SCAR_L_STD_EGLM_RCO", 5]; _crate AddWeaponCargo ["SCAR_L_STD_HOLO", 5]; _crate AddWeaponCargo ["SCAR_L_STD_Mk4CQT", 5]; _crate addMagazineCargo ["30Rnd_556x45_StanagSD", 50]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249_ep1", 5]; _crate AddWeaponCargo ["M240_scoped_Ep1", 5]; _crate AddWeaponCargo ["M249_m145_ep1", 5]; _crate AddWeaponCargo ["Mk_48", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["M24", 5]; //_crate AddWeaponCargo ["M24_EP1", 5]; _crate AddMagazineCargo ["5Rnd_762x51_M24", 100]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = USSpecialWeapons_EP1 //Possibly US Army Special Weapons { _crate AddWeaponCargo ["SCAR_H_CQC_CCO", 5]; _crate AddWeaponCargo ["SCAR_H_CQC_CCO_SD", 5]; _crate AddWeaponCargo ["SCAR_H_LNG_Sniper", 5]; _crate AddWeaponCargo ["SCARG_H_LNG_Sniper_SD", 5]; _crate AddWeaponCargo ["SCAR_H_STD_EGLM_SPECT", 5]; _crate AddWeaponCargo ["DMR", 5]; _crate AddWeaponCargo ["M14_EP1", 5]; _crate AddMagazineCargo ["20Rnd_762x51_DMR", 100]; _crate addMagazineCargo ["20Rnd_762x51_SB_SCAR", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = USSpecialWeapons { _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A2GL", 5]; _crate AddWeaponCargo ["M16A4", 5]; _crate AddWeaponCargo ["M16A4_acg", 5]; _crate AddWeaponCargo ["M16A4_gl", 5]; _crate AddWeaponCargo ["M16A4_acg_gl", 5]; _crate AddWeaponCargo ["M4A1", 5]; _crate AddWeaponCargo ["M4A1_Aim", 5]; _crate AddWeaponCargo ["M4A1_Aim_camo", 5]; _crate AddWeaponCargo ["m4a1_Aim_sd", 5]; _crate AddWeaponCargo ["M4A1_hws_gl", 5]; _crate AddWeaponCargo ["M4A1_hws_gl_camo", 5]; _crate AddWeaponCargo ["M4A1_hws_gl_sd_camo", 5]; _crate AddWeaponCargo ["m4a1_rco_gl", 5]; _crate AddWeaponCargo ["M4A3_CCO_EP1", 5]; _crate AddWeaponCargo ["M4A3_RCO_GL_EP1", 5]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["m40A3", 3]; _crate AddMagazineCargo ["5Rnd_762x51_M24", 25]; _crate AddWeaponCargo ["mp5sd", 5]; _crate AddMagazineCargo ["30Rnd_9x19_MP5sd", 100]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 400]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = TKSpecialWeapons_EP1 { _crate AddWeaponCargo ["AK_107_GL_kobra", 5]; _crate AddWeaponCargo ["AK_107_GL_PSO", 5]; _crate AddWeaponCargo ["AK_107_kobra", 5]; _crate AddWeaponCargo ["AK_107_pso", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddWeaponCargo ["SVD", 5]; _crate AddWeaponCargo ["SVD_CAMO", 5]; _crate AddWeaponCargo ["SVD_des_ep1", 5]; _crate AddWeaponCargo ["SVD_NSPU", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 100]; _crate AddWeaponCargo ["KSVK", 5]; _crate AddMagazineCargo ["5Rnd_127x108_KSVK", 50]; _crate AddWeaponCargo ["Pecheneg", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 100]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = GuerillaCacheBox // This cache is very sneaky sneaky, very hard to spot { _crate AddWeaponCargo ["M110_NVG_EP1", 5]; _crate AddWeaponCargo ["SCAR_H_LNG_Sniper", 5]; _crate AddWeaponCargo ["SCAR_H_CQC_CCO", 5]; _crate AddMagazineCargo ["20Rnd_762x51_B_SCAR", 100]; _crate AddWeaponCargo ["M14_EP1", 5]; _crate AddWeaponCargo ["DMR", 5]; _crate AddMagazineCargo ["20Rnd_762x51_DMR", 100]; _crate AddWeaponCargo ["M60A4_EP1", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else;
  13. Thanks in advance for the help. The main objective is to be able to re-customize the weapons inside the actual cache, mainly because PMC weapons have a M8 TWS that they do not wish to have on the mission. private ["_marker","_boxes","_town","_newpos","_numb","_boxnum","_box","_townpos","_towns"]; if (isServer) then { if (CVG_Caches == 1) then { boxes = 20; // Starting point every island should have... _towns = towns; while {boxes > 0} do { _boxes = ["USBasicWeaponsBox","RUBasicWeaponsBox","GERBasicWeapons_EP1","USBasicWeapons_EP1","TKBasicWeapons_EP1","SpecialWeaponsBox","Ammobox_PMC"]; _town = _towns call BIS_fnc_selectRandom; _newpos = getpos _town; _townpos = [_newpos, 10, 100, 1, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos; _numb = (count _boxes); _boxnum = floor (random _numb); _box = _boxes select _boxnum; _box = createVehicle [_box,_townpos,[], 0, "NONE"]; boxes = boxes - 1; }; }; }; They came up with this a while ago.
  14. There is, maybe, a easier way to do this, by adding removeallweapons & removemagazines after spawning the said cache and then add a probability to execute, taking the example above, 1 of the 3 available scripts, this would require more time than just setting a custom cache and spawning it, as it would have to work singularly in every cache. But could work, I think. My scripting/coding knowledge is very limited, I gave them the idea and I'm trying to help them with it.
×