second_coming Posted February 8, 2015 Report Share Posted February 8, 2015 Noob question here, but do I just add this below Class Item99, and follow the same syntax, or do I just add as is? I've got everything working perfect and I would like to just get this working first time rather than fiddle around with it unnecessarily, if I can help it. With all this random AI hunting everyone, a radio, and a pistol would definitely be helpful for new players to stay alive for at least a few minutes :PYes, directly after the groups bracket closes cyncrwler 1 Link to comment Share on other sites More sharing options...
cyncrwler Posted February 8, 2015 Report Share Posted February 8, 2015 Thanks for clarifying! Link to comment Share on other sites More sharing options...
sparrow8332 Posted February 12, 2015 Report Share Posted February 12, 2015 the box spawns but no scroll menu and standard gear is still in the box Link to comment Share on other sites More sharing options...
sparrow8332 Posted February 12, 2015 Report Share Posted February 12, 2015 Can somone please help with BE filters i keep getting kicked for this : 12.02.2015 20:51:27: sparrow (81.129.201.57:2304) 69c091febdbb2a3bcb0a1cdb4c6e107e - #24 "player; player addWeapon "hgun_Pistol_heavy_01_F"; player addMagazine "11Rnd_45ACP_Mag"; player addWeapon "EpochRadio0"; player" 12.02.2015 20:51:27: sparrow (81.129.201.57:2304) 69c091febdbb2a3bcb0a1cdb4c6e107e - #25 "eapon "EpochRadio0"; player addWeapon "ItemMap"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player addIte" 12.02.2015 20:51:27: sparrow (81.129.201.57:2304) 69c091febdbb2a3bcb0a1cdb4c6e107e - #27 "ddWeapon "EpochRadio0"; player addWeapon "ItemMap"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player add" everytime i get my loadout admin or not. ive tried adding to the scripts.txt but no luck. Link to comment Share on other sites More sharing options...
jox Posted February 13, 2015 Report Share Posted February 13, 2015 are you putting != in front of script filter example, !="EpochRadio0"; Link to comment Share on other sites More sharing options...
sparrow8332 Posted February 13, 2015 Report Share Posted February 13, 2015 are you putting != in front of script filter example, !="EpochRadio0"; yes mate eg : !="player addMagazine \"11Rnd_45ACP_Mag\";" Link to comment Share on other sites More sharing options...
second_coming Posted February 13, 2015 Report Share Posted February 13, 2015 yes mate eg : !="player addMagazine \"11Rnd_45ACP_Mag\";"try using!"player addMagazine \"11Rnd_45ACP_Mag\";"rather than!="player addMagazine \"11Rnd_45ACP_Mag\";"Losing the = sign makes the filter use a contains check rather than equals check. Link to comment Share on other sites More sharing options...
second_coming Posted February 16, 2015 Report Share Posted February 16, 2015 OR YOU CAN ADD STEAMID SERVER SIDE SO THEY ARE NOT PUBLIC. BELOW IS HOW. if (getPlayerUID player in admin_list) then { Than adding the admin_list to yout admin.sqf admin.sqfadmin_list = ["0"]; Put admin.sqf in root directory. Open up missions.sqm Goto line 81 ADD THISinit="if (isServer) then {execVM '\admin.sqf';};"; BELOWskill=0.60000002; Should look like thisclass Item0 { position[]={14090.048,11.188511,11554.008}; azimut=136.241; special="NONE"; id=0; side="CIV"; vehicle="VirtualMan_EPOCH"; player="PLAY CDG"; leader=1; skill=0.60000002; init="if (isServer) then {execVM '\admin.sqf';};"; }; Any questions let me know. Hope this helps someone. Mister T.I can't get this to load admin.sqf, can you clarify where you mean when you say root directory? Link to comment Share on other sites More sharing options...
CH!LL3R Posted February 16, 2015 Report Share Posted February 16, 2015 Think he means just the arma3 Folder, same place where the @Epoch and @epochhive folders goes.... You can see this at the \ in front of the path: init="if (isServer) then {execVM '\admin.sqf';};"; Link to comment Share on other sites More sharing options...
second_coming Posted February 17, 2015 Report Share Posted February 17, 2015 Think he means just the arma3 Folder, same place where the @Epoch and @epochhive folders goes....You can see this at the \ in front of the path:init="if (isServer) then {execVM '\admin.sqf';};";It doesn't work for me for some reason, I just get a variable undeclared error in my server log when I run the script that checks the value. Link to comment Share on other sites More sharing options...
LimpNoodle Posted February 17, 2015 Report Share Posted February 17, 2015 the box spawns but no scroll menu and standard gear is still in the box I bet you are using infistar right? If so then you need to change some lines in run.sqf, like /* "" Respawn Handler */ _RRH = false; and maybe also /* Remove Action Objs */ _OAO = false; /* Check Attached Objs */ _CAO = false; And pls remember to do the BE exclusions Link to comment Share on other sites More sharing options...
LimpNoodle Posted February 17, 2015 Report Share Posted February 17, 2015 Ok who here can fix this for me? Doing the spawn box This is the idea I want to use in the loadfrombox.sqf (something similar used to work in Arma 2) but there is obviously something wrong here. (at work so can't really play and test it and fix) As you can see the idea is to have multiply loadouts, ie Admin Loadout, Donator Tier loadouts & a standard loadout for the rest who joins the server. Thx! // Admin Loadout if ((getPlayerUID player in ["xxxxxx"] ) && (EPOCH_playerCrypto == 0)) then { hint "Admin Loadout Supplied"; clearWeaponCargo player; clearMagazineCargo player; removeBackpackGlobal player; player forceAddUniform "U_OG_Guerilla2_3"; player addBackpack "B_Carryall_oucamo"; player addHeadGear "H_11_EPOCH"; player addVest "V_26_EPOCH"; player addWeapon "hgun_P07_F"; player addWeapon "srifle_EBR_F"; player addWeapon "EpochRadio0"; player addWeapon "ItemGPS"; player addWeapon "ItemMap"; player addWeapon "ItemWatch"; player addWeapon "ItemCompass"; player addWeapon "Laserdesignator"; player addPrimaryWeaponItem "optic_tws"; player addPrimaryWeaponItem "muzzle_snds_B"; player addHandgunItem "muzzle_snds_L"; player addItemToVest "FAK"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player addItemToVest "scam_epoch"; player addItemToVest "ItemSodaRbull"; player addItemToVest "ItemSodaRbull"; player addMagazines ["30rnd_9x21_mag", 4]; player addMagazines ["20rnd_762x51_mag", 5]; player addMagazines ["energypacklg", 2]; player addMagazines ["handgrenade", 6]; player addMagazines ["democharge_remote_mag", 4]; EPOCH_playerEnergy = 2500; EPOCH_playerCrypto = 250; } // Donator Tier 4 Loadout if ((getPlayerUID player in ["xxxxxxxxx"] ) && (EPOCH_playerCrypto == 0)) then { hint "Donator Tier 4 Loadout Supplied"; clearWeaponCargo player; clearMagazineCargo player; player addWeapon "hgun_Pistol_heavy_01_F"; player addMagazine "11Rnd_45ACP_Mag"; player addWeapon "EpochRadio0"; player addWeapon "ItemMap"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player addItemToVest "ItemSodaRbull"; player addItemToVest "11Rnd_45ACP_Mag"; player addItemToVest "11Rnd_45ACP_Mag"; EPOCH_playerCrypto = 100; EPOCH_playerEnergy = 500; _modelMale = (typeOF player == "Epoch_Male_F"); _modelFemale = (typeOF player == "Epoch_Female_F"); if (_modelFemale) then { player forceAddUniform "U_BasicBodyFemale"; }; if (_modelMale) then { player forceAddUniform "U_OG_Guerilla2_3"; }; } else { // Standard Loadout if (EPOCH_playerCrypto == 0) then { hint "Standard Loadout Supplied"; clearWeaponCargo player; clearMagazineCargo player; player addWeapon "hgun_Pistol_heavy_01_F"; player addMagazine "11Rnd_45ACP_Mag"; player addWeapon "EpochRadio0"; player addWeapon "ItemMap"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player addItemToVest "ItemSodaRbull"; player addItemToVest "11Rnd_45ACP_Mag"; player addItemToVest "11Rnd_45ACP_Mag"; EPOCH_playerCrypto = 100; EPOCH_playerEnergy = 500; _modelMale = (typeOF player == "Epoch_Male_F"); _modelFemale = (typeOF player == "Epoch_Female_F"); if (_modelFemale) then { player forceAddUniform "U_BasicBodyFemale"; }; if (_modelMale) then { player forceAddUniform "U_C_Poor_1"; }; }; }; Link to comment Share on other sites More sharing options...
second_coming Posted February 17, 2015 Report Share Posted February 17, 2015 Ok who here can fix this for me? Doing the spawn box This is the idea I want to use in the loadfrombox.sqf (something similar used to work in Arma 2) but there is obviously something wrong here. (at work so can't really play and test it and fix)As you can see the idea is to have multiply loadouts, ie Admin Loadout, Donator Tier loadouts & a standard loadout for the rest who joins the server. Thx!// Admin Loadout if ((getPlayerUID player in ["xxxxxx"] ) && (EPOCH_playerCrypto == 0)) then { hint "Admin Loadout Supplied"; clearWeaponCargo player; clearMagazineCargo player; removeBackpackGlobal player; player forceAddUniform "U_OG_Guerilla2_3"; player addBackpack "B_Carryall_oucamo"; player addHeadGear "H_11_EPOCH"; player addVest "V_26_EPOCH"; player addWeapon "hgun_P07_F"; player addWeapon "srifle_EBR_F"; player addWeapon "EpochRadio0"; player addWeapon "ItemGPS"; player addWeapon "ItemMap"; player addWeapon "ItemWatch"; player addWeapon "ItemCompass"; player addWeapon "Laserdesignator"; player addPrimaryWeaponItem "optic_tws"; player addPrimaryWeaponItem "muzzle_snds_B"; player addHandgunItem "muzzle_snds_L"; player addItemToVest "FAK"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player addItemToVest "scam_epoch"; player addItemToVest "ItemSodaRbull"; player addItemToVest "ItemSodaRbull"; player addMagazines ["30rnd_9x21_mag", 4]; player addMagazines ["20rnd_762x51_mag", 5]; player addMagazines ["energypacklg", 2]; player addMagazines ["handgrenade", 6]; player addMagazines ["democharge_remote_mag", 4]; EPOCH_playerEnergy = 2500; EPOCH_playerCrypto = 250; } // Donator Tier 4 Loadout if ((getPlayerUID player in ["xxxxxxxxx"] ) && (EPOCH_playerCrypto == 0)) then { hint "Donator Tier 4 Loadout Supplied"; clearWeaponCargo player; clearMagazineCargo player; player addWeapon "hgun_Pistol_heavy_01_F"; player addMagazine "11Rnd_45ACP_Mag"; player addWeapon "EpochRadio0"; player addWeapon "ItemMap"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player addItemToVest "ItemSodaRbull"; player addItemToVest "11Rnd_45ACP_Mag"; player addItemToVest "11Rnd_45ACP_Mag"; EPOCH_playerCrypto = 100; EPOCH_playerEnergy = 500; _modelMale = (typeOF player == "Epoch_Male_F"); _modelFemale = (typeOF player == "Epoch_Female_F"); if (_modelFemale) then { player forceAddUniform "U_BasicBodyFemale"; }; if (_modelMale) then { player forceAddUniform "U_OG_Guerilla2_3"; }; } else { // Standard Loadout if (EPOCH_playerCrypto == 0) then { hint "Standard Loadout Supplied"; clearWeaponCargo player; clearMagazineCargo player; player addWeapon "hgun_Pistol_heavy_01_F"; player addMagazine "11Rnd_45ACP_Mag"; player addWeapon "EpochRadio0"; player addWeapon "ItemMap"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player addItemToVest "ItemSodaRbull"; player addItemToVest "11Rnd_45ACP_Mag"; player addItemToVest "11Rnd_45ACP_Mag"; EPOCH_playerCrypto = 100; EPOCH_playerEnergy = 500; _modelMale = (typeOF player == "Epoch_Male_F"); _modelFemale = (typeOF player == "Epoch_Female_F"); if (_modelFemale) then { player forceAddUniform "U_BasicBodyFemale"; }; if (_modelMale) then { player forceAddUniform "U_C_Poor_1"; }; }; }; How about this?// Admin Loadout if ( getPlayerUID player in ["xxxxxx"] ) then { hint "Admin Loadout Supplied"; clearWeaponCargo player; clearMagazineCargo player; removeBackpackGlobal player; player forceAddUniform "U_OG_Guerilla2_3"; player addBackpack "B_Carryall_oucamo"; player addHeadGear "H_11_EPOCH"; player addVest "V_26_EPOCH"; player addWeapon "hgun_P07_F"; player addWeapon "srifle_EBR_F"; player addWeapon "EpochRadio0"; player addWeapon "ItemGPS"; player addWeapon "ItemMap"; player addWeapon "ItemWatch"; player addWeapon "ItemCompass"; player addWeapon "Laserdesignator"; player addPrimaryWeaponItem "optic_tws"; player addPrimaryWeaponItem "muzzle_snds_B"; player addHandgunItem "muzzle_snds_L"; player addItemToVest "FAK"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player addItemToVest "scam_epoch"; player addItemToVest "ItemSodaRbull"; player addItemToVest "ItemSodaRbull"; player addMagazines ["30rnd_9x21_mag", 4]; player addMagazines ["20rnd_762x51_mag", 5]; player addMagazines ["energypacklg", 2]; player addMagazines ["handgrenade", 6]; player addMagazines ["democharge_remote_mag", 4]; EPOCH_playerEnergy = 2500; EPOCH_playerCrypto = 250; } else { // Donator Tier 4 Loadout if ((getPlayerUID player in ["xxxxxxxxx"] ) && (EPOCH_playerCrypto == 0)) then { hint "Donator Tier 4 Loadout Supplied"; clearWeaponCargo player; clearMagazineCargo player; player addWeapon "hgun_Pistol_heavy_01_F"; player addMagazine "11Rnd_45ACP_Mag"; player addWeapon "EpochRadio0"; player addWeapon "ItemMap"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player addItemToVest "ItemSodaRbull"; player addItemToVest "11Rnd_45ACP_Mag"; player addItemToVest "11Rnd_45ACP_Mag"; EPOCH_playerCrypto = 100; EPOCH_playerEnergy = 500; _modelMale = (typeOF player == "Epoch_Male_F"); _modelFemale = (typeOF player == "Epoch_Female_F"); if (_modelFemale) then { player forceAddUniform "U_BasicBodyFemale"; }; if (_modelMale) then { player forceAddUniform "U_OG_Guerilla2_3"; }; } else { // Standard Loadout if (EPOCH_playerCrypto == 0) then { hint "Standard Loadout Supplied"; clearWeaponCargo player; clearMagazineCargo player; player addWeapon "hgun_Pistol_heavy_01_F"; player addMagazine "11Rnd_45ACP_Mag"; player addWeapon "EpochRadio0"; player addWeapon "ItemMap"; player addItemToVest "FAK"; player addItemToVest "scam_epoch"; player addItemToVest "ItemSodaRbull"; player addItemToVest "11Rnd_45ACP_Mag"; player addItemToVest "11Rnd_45ACP_Mag"; EPOCH_playerCrypto = 100; EPOCH_playerEnergy = 500; _modelMale = (typeOF player == "Epoch_Male_F"); _modelFemale = (typeOF player == "Epoch_Female_F"); if (_modelFemale) then { player forceAddUniform "U_BasicBodyFemale"; }; if (_modelMale) then { player forceAddUniform "U_C_Poor_1"; }; }; }; } Link to comment Share on other sites More sharing options...
LimpNoodle Posted February 17, 2015 Report Share Posted February 17, 2015 Thx, actually got it working without that :) Link to comment Share on other sites More sharing options...
R4ziel Posted February 23, 2015 Report Share Posted February 23, 2015 Can someone help me to show me how the code would look if I had 4 different kits for 4 different people (admins) and a default kit perhaps? Link to comment Share on other sites More sharing options...
Metalfoundry Posted February 25, 2015 Report Share Posted February 25, 2015 Which of these scripts are working at the first login of a player? I tried 1-2 scripts, but it only works after the first death of a player and only for the admins.. Link to comment Share on other sites More sharing options...
second_coming Posted February 25, 2015 Report Share Posted February 25, 2015 Which of these scripts are working at the first login of a player? I tried 1-2 scripts, but it only works after the first death of a player and only for the admins..To have it work on first log on you need to use the 'crate in the clone room' method Link to comment Share on other sites More sharing options...
Zupa Posted February 25, 2015 Report Share Posted February 25, 2015 To have it work on first log on you need to use the 'crate in the clone room' method Or rewrite the code to work on first login ^^. Or do it server side ^^ Link to comment Share on other sites More sharing options...
Darth_Rogue Posted February 25, 2015 Report Share Posted February 25, 2015 Here's mine. Works on new spawns and respawns. Also provides a random, dynamic loadout regardless of whether the player is an admin or regular player. It makes it more fair for everyone. if (EPOCH_playerCrypto == 0) then { _PistolANDmag = [["hgun_Pistol_heavy_02_Yorris_F","6Rnd_45ACP_Cylinder"],["hgun_Pistol_heavy_02_F","6Rnd_45ACP_Cylinder"],["hgun_Pistol_heavy_01_MRD_F","11Rnd_45ACP_Mag"],["hgun_Pistol_heavy_01_snds_F","11Rnd_45ACP_Mag"],["hgun_Pistol_heavy_01_F","11Rnd_45ACP_Mag"],["hgun_ACPC2_snds_F","9Rnd_45ACP_Mag"],["hgun_ACPC2_F","9Rnd_45ACP_Mag"],["hgun_Rook40_snds_F","16Rnd_9x21_Mag"],["hgun_Rook40_F","16Rnd_9x21_Mag"],["hgun_P07_snds_F","16Rnd_9x21_Mag"],["hgun_P07_F","16Rnd_9x21_Mag"]] call BIS_fnc_selectRandom; _pistol = _PistolANDmag select 0; _mag = _PistolANDmag select 1; _item = "FAK"; _food = ["CookedSheep_EPOCH","CookedGoat_EPOCH","CookedChicken_EPOCH","CookedRabbit_EPOCH","ItemTunaCooked","ItemSeaBassCooked","ItemTroutCooked","FoodSnooter","FoodMeeps"] call BIS_fnc_selectRandom; _drink = ["ItemSodaRbull","ItemSodaOrangeSherbet","ItemSodaPurple","ItemSodaMocha","ItemSodaBurst","FoodWalkNSons","WhiskeyNoodle"] call BIS_fnc_selectRandom; _uniform = ["U_C_Scientist","U_C_Journalist","U_C_WorkerCoveralls","U_C_Poor_1","U_C_Poloshirt_redwhite","U_C_Poloshirt_salmon","U_C_Poloshirt_tricolour","U_C_Poloshirt_burgundy","U_C_Poloshirt_blue","U_C_Poloshirt_stripped"] call BIS_fnc_selectRandom; _vest = ["V_16_EPOCH","V_15_EPOCH","V_14_EPOCH","V_13_EPOCH","V_12_EPOCH","V_11_EPOCH","V_10_EPOCH","V_9_EPOCH","V_8_EPOCH","V_7_EPOCH","V_6_EPOCH","V_5_EPOCH","V_4_EPOCH","V_3_EPOCH","V_2_EPOCH","V_1_EPOCH"] call BIS_fnc_selectRandom; hint format ["Standard Loadout Supplied"]; clearWeaponCargo player; clearMagazineCargo player; player addVest _vest; player addWeapon _pistol; player addMagazine _mag; player addMagazine _item; player addMagazine _food; player addMagazine _drink; player addWeapon "EpochRadio0"; EPOCH_playerCrypto = 100; EPOCH_playerEnergy = 500; _modelMale = (typeOF player == "Epoch_Male_F"); _modelFemale = (typeOF player == "Epoch_Female_F"); if (_modelFemale) then { player forceAddUniform "U_BasicBodyFemale"; }; if (_modelMale) then { player forceAddUniform _uniform; }; }else{ hint "Standard Loadout Already Supplied"; }; I use it in conjunction with this mission.sqm addon to put a static crate in the spawn box. When players approach it you get an option to get the loadout. But due to the code above, you can only get a loadout once per spawn event. class Vehicles { items=1; class Item0 { position[] = {13813.3,0.305496,6887.16}; azimut = 176.925; id=102; side="EMPTY"; vehicle="O_supplyCrate_F"; skill=0.60000002; init="clearMagazineCargoGlobal this; clearWeaponCargoGlobal this; clearItemCargoGlobal this; clearAllItemsFromBackpack this; clearBackpackCargoGlobal this; this addAction[""<t color='#D11313'>Grab Starting Loadout</t>"", ""addons\loadout\loadout.sqf""];"; }; Put the above code right under your markers and you're all set. The listed crate coords are for Bornholm. Those would need changed if you use this on any other map. Link to comment Share on other sites More sharing options...
Floyd Posted February 26, 2015 Report Share Posted February 26, 2015 "Better to remain silent and thought a fool than to speak up and remove all doubt."That being said....I spent the entire day trying to get a script based off of pr0dukt's and Darth_Rogue's scripts. I'd rather not go the loot box in spawn route, and I'm not bothered by the first spawn not getting the loadout. Reluctantly I'm posting my script (see the opening sentence).I've yet to get it to run. One issue is a BE filter that I can't seem to get the regular expression right on. And another is that upon each respawn there is a 'doppleganger(?) added in the spawn area).Here is my code://loadout.sqf private ["_player"]; if (!isServer) then { waitUntil {!isNull player}; waitUntil {player == player}; while {true} do { _player = player; player addEventHandler ["Respawn", { _Floyd_PistolANDmag = [["hgun_Pistol_heavy_02_F","6Rnd_45ACP_Cylinder"],["hgun_ACPC2_snds_F","9Rnd_45ACP_Mag"]] call BIS_fnc_selectRandom; _Floyd_pistol = _Floyd_PistolANDmag select 0; _Floyd_mag = _Floyd_PistolANDmag select 1; _Floyd_item = "FAK"; _Floyd_food = ["CookedChicken_EPOCH","CookedRabbit_EPOCH","FoodSnooter","FoodMeeps"] call BIS_fnc_selectRandom; _Floyd_drink = ["ItemSodaPurple","ItemSodaMocha","FoodWalkNSons"] call BIS_fnc_selectRandom; _Floyd_uniform = ["U_C_Poloshirt_redwhite","U_C_Poloshirt_salmon","U_C_Poloshirt_tricolour","U_C_Poloshirt_burgundy","U_C_Poloshirt_blue","U_C_Poloshirt_stripped"] call BIS_fnc_selectRandom; _Floyd_vest = ["V_16_EPOCH","V_15_EPOCH","V_14_EPOCH","V_13_EPOCH","V_12_EPOCH","V_11_EPOCH","V_10_EPOCH","V_9_EPOCH","V_8_EPOCH","V_7_EPOCH","V_6_EPOCH","V_5_EPOCH","V_4_EPOCH","V_3_EPOCH","V_2_EPOCH","V_1_EPOCH"] call BIS_fnc_selectRandom; hint format [" %1 \n %2 \n %3 \n %4 \n %5 \n %6 \n %7",_pistol,_mag,_item,_food,_drink,_uniform,_vest]; player addVest _Floyd_vest; player addWeapon _Floyd_pistol; player addMagazine _Floyd__mag; player addMagazine _Floyd_item; player addMagazine _Floyd_food; player addMagazine _Floyd_drink; player forceAddUniform _Floyd_uniform; }]; waitUntil {_player != player}; }; }; In my mission folder I have an init.sqf that has:// My default loadout[] execVM "custom\loadout.sqf";The file above is in the 'custom' folder of my mission.Here is the BE code for the kick. It seems simple enough, but I can't seem to get past it.25.02.2015 18:07:18: Floyd (127.0.0.1:2304) xxxxf9f7exxxxx - #0 "ACP_Cylinder],["hgun_ACPC2_snds_F","9Rnd_45ACP_Mag"]] call BIS_fnc_selectRandom; _Floyd_pistol = _Floyd_PistolANDmag select 0; "I went round and round trying to create a simple loadout script with some limited variablility and no loadout box.Thanks for any bones (with lots of meat, for the layman) thrown my way....FloydYou'll notice I changed the names of the variables. My paranoid thinking was that it would make it more difficult for someone to take advantage and abuse the actions. Possible? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted February 26, 2015 Report Share Posted February 26, 2015 Two things. First, this should fix your BE kick - !"BIS_fnc_selectRandom" Pretty sure that should go on scripts.txt, line 1. Second, change player addMagazine _Floyd__mag; to this player addMagazine _Floyd_mag; You have an extra _ in there which will throw it off. I doubt that would be the cause for the doppelganger you're experiencing, but that's a good start. Maybe try adding at the end: player removeEventHandler ["Respawn", 0]; I'm no scripting expert myself, so I could be wrong about that part. Saw it mentioned earlier in the thread. Link to comment Share on other sites More sharing options...
Floyd Posted February 26, 2015 Report Share Posted February 26, 2015 Thank you, kind sir!I thought for sure I'd already tried your BE filter suggestion, but I re-entered it and got past that hurdle.As I'd added the removeEventHandler at the same time I fixed the _ typo, I had to add that to the BE filter as well.Now it works!Except for a little dBase and Savvy (if one could call those programming languages), I haven't coded since my key-punch card days of Fortran and Cobol in college.Thanks again for the sharp eyes and taking the time to look it over! Link to comment Share on other sites More sharing options...
SadBoy1981 Posted February 28, 2015 Report Share Posted February 28, 2015 Right under waitUntil {_player != player}; I added waitUntil {!alive player}; player removeEventHandler ["Respawn", 0]; Not sure this is 100% correct but it should prevent loadout from spawning multiple times. After 2 respawns keep duping items, in my server it is parashute, if in server are 30 players and they die every 5 minutes after 1 hout spawn box lagging cose there is tons of parashute of the ground Link to comment Share on other sites More sharing options...
Guest Posted February 28, 2015 Report Share Posted February 28, 2015 After 2 respawns keep duping items, in my server it is parashute, if in server are 30 players and they die every 5 minutes after 1 hout spawn box lagging cose there is tons of parashute of the ground Add this above your added items... clearWeaponCargo player; clearMagazineCargo player; removeBackpackGlobal player; I'll grab mine when I wake up and post it:) . It clears the weapon mag and backpack everytime the spam the box .;) Link to comment Share on other sites More sharing options...
Guest Posted February 28, 2015 Report Share Posted February 28, 2015 Oh and make sure you set the be filters on clearing that backpack too ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now