Jump to content

Ethan_B73

Member
  • Content Count

    5
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Ethan_B73

  • Rank
    Rookie
  1. Hi Larrow, You're the man Thank you very much, you make it sound so easy 🙂. Cheers
  2. Hi pierremgi, thanks for jumping in , I did as you stated above but I'm still not getting any loot inside. this is what i changed: private "_mkrType"; _RdmMapPos = [] call BIS_fnc_randomPos; for "_i" from 1 to selectRandom [8, 13, 15, 18, 20] do { _RdmMapPos = [] call BIS_fnc_randomPos; _mkrstr = createMarker [str _RdmMapPos, _RdmMapPos]; _mkrstr setmarkerShape "ICON"; _mkrstr setmarkerType "mil_marker"; _mkrstr setMarkerSize [1, 1]; }; { _mkrType = getMarkerType _x; switch (_mkrType) do { case "mil_marker" : { _object = selectRandom ["B_Quadbike_01_F", "Land_WoodenCrate_01_F"]; createVehicle [_object, getMarkerPos _x, [], 0, "CAN_COLLIDE"]; }; }; } forEach allMapMarkers; { _crateArray = ["Land_WoodenCrate_01_F"]; _gunsArray = ["hgun_P07_F","hgun_ACPC2_snds_F","hgun_P07_F"]; _ItemsArray = ["rvg_plasticBottle", "rvg_plasticBottlePurified", "rvg_canOpener", "rvg_spirit", "rvg_franta", "rvg_beans", "rvg_bacon", "rvg_milk", "rvg_rice", "rvg_plasticBottleEmpty", "rvg_canteenEmpty", "rvg_plasticBottle", "rvg_plasticBottlePurified", "rvg_spirit", "rvg_franta", "rvg_beans", "rvg_bacon", "rvg_milk", "rvg_rice", "rvg_money", "rvg_money", "rvg_money", "rvg_money" ]; { _x addWeaponCargoGlobal [selectRandom _gunsArray, selectRandom [0,1]]; _x addItemCargoGlobal [selectrandom _ItemsArray, selectRandom [0,1]]; } forEach _crateArray;
  3. just tried that still nothing atm...
  4. Hi Spacehippo, thanks for the comment, but unfortunately it hasn't worked for me. I just changed the bottom half of my script to : _crateArray addWeaponCargoGlobal [selectRandom _gunsArray, round(random 2)]; _crateArray addItemCargoGlobal [selectrandom _ItemsArray, round(random 2)]; please correct me if i'm wrong. I'm not sure as to what i'm doing wrong 😕. cheers
  5. Hi Guys, I'm having trouble with the second part of my script , I'm hoping someone with more scripting knowledge could give me a hand with this. My overall goal is to place random markers on the map which will spawn in the objects that I defined in my script. So my problem comes when a crate is spawned, no loot is being added to it. I believe its from the addweaponCargo and addItemCargo.... Here is my script : _RdmMapPos = [] call BIS_fnc_randomPos; for "_i" from 1 to selectRandom [8, 13, 15, 18, 20] do { _RdmMapPos = [] call BIS_fnc_randomPos; _mkrstr = createMarker [str _RdmMapPos, _RdmMapPos]; _mkrstr setmarkerShape "ICON"; _mkrstr setmarkerType "mil_marker"; _mkrstr setMarkerSize [1, 1]; }; { _mkrType = getMarkerType _x; switch (_mkrType) do { case "mil_marker" : { _object = selectRandom ["B_Quadbike_01_F", "Land_WoodenCrate_01_F"]; createVehicle [_object, getMarkerPos _x, [], 0, "CAN_COLLIDE"]; }; }; } forEach allMapMarkers; { _crateArray = ["Land_WoodenCrate_01_F"]; _gunsArray = ["hgun_P07_F","hgun_ACPC2_snds_F","hgun_P07_F"]; _ItemsArray = ["rvg_plasticBottle", "rvg_plasticBottlePurified", "rvg_canOpener", "rvg_spirit", "rvg_franta", "rvg_beans", "rvg_bacon", "rvg_milk", "rvg_rice", "rvg_plasticBottleEmpty", "rvg_canteenEmpty", "rvg_plasticBottle", "rvg_plasticBottlePurified", "rvg_spirit", "rvg_franta", "rvg_beans", "rvg_bacon", "rvg_milk", "rvg_rice", "rvg_money", "rvg_money", "rvg_money", "rvg_money" ]; _crateArray addWeaponCargo [selectRandom _gunsArray, round(random 2)]; _crateArray addItemCargo [selectrandom _ItemsArray, round(random 2)]; }; Cheers in advance.
×