Jump to content
  • 0

chi

Question

I was wondering if i could get some help clearing the loot from the usvehiclebox that i have spawning here. It spawns with like 100 mags of 240/249 bullets.

I would like to clear the cargo and create an array for the loot to choose from. I might could do the array if i knew where to put it, but i cant get the clearmagazinecargo function to work.

Thanks in advance to anyone who can help. 

P.S. It spawns whits smoke when falling from the air. Any way to make it spawn smoke in the day and flares at night?

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

heres one of my crates

  Reveal hidden contents

*if u wants random spawns per restart, define for example:

_cratepos = [[your coords],[0000,00223,023023],[" other coords"]] BIS_fnc_selectRandom;

and change in here:

_this = createVehicle ["TKBasicWeapons_EP1", [10469.471, 8885.4902, 0.00039672852], [], 0, "CAN_COLLIDE"];

by

_this = createVehicle ["TKBasicWeapons_EP1", _cratepos, [], 0, "CAN_COLLIDE"];

*If u wants diferents models of crates:

_cratemodels=["GuerillaCacheBox","RULaunchersBox","RUBasicAmmunitionBox","RUOrdnanceBox","USBasicAmmunitionBox","USLaunchersBox","USOrdnanceBox","USOrdnanceBox_EP1","USLaunchers_EP1","USBasicWeapons_EP1","USBasicAmmunitionBox_EP1","UNBasicAmmunitionBox_EP1","TKOrdnanceBox_EP1","TKLaunchers_EP1","TKBasicAmmunitionBox_EP1","GuerillaCacheBox_EP1","GERBasicWeapons_EP1"] BIS_fnc_selectRandom;

then change it:

_this = createVehicle ["TKBasicWeapons_EP1", _cratepos, [], 0, "CAN_COLLIDE"];

by

_this = createVehicle [_cratemodels, _cratepos, [], 0, "CAN_COLLIDE"];

 

*here you have another example, i use it on traders to give players random positions of randoms crates-

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

Lines 89 and 90 are what i tried for clearing the loot, but its still in the box.

 

Lines 94 and 95 are what i tried for flares. I would like the flares to only work at night though, and the smoke in the daytime. OR both at the same time if nothing else.

 

But clearing the loot so i can put in an array is essential. Thanks juan, you are everywhere today!!!! lol ;-)

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 7/17/2016 at 11:06 PM, chi said:

Lines 89 and 90 are what i tried for clearing the loot, but its still in the box.

 

Lines 94 and 95 are what i tried for flares. I would like the flares to only work at night though, and the smoke in the daytime. OR both at the same time if nothing else.

 

But clearing the loot so i can put in an array is essential. Thanks juan, you are everywhere today!!!! lol ;-)

  Reveal hidden contents

 

Expand  

:D

89 and 90  must be  clearWeaponCargoGlobal

 clearWeaponCargoGlobal _FlyingSupplyBox;
 clearMagazineCargoGlobal _FlyingSupplyBox;

 

Link to comment
Share on other sites

  • 0

dang, i was close.... lol. I know nothing about coding really, so thanks again for your help. Thats two problems solved in one day!!!!!

 

Everything you help me with does help me to learn a little more than i do know. So thanks for that.

 

Im looking up some stuff on the night time flares now.

 

Link to comment
Share on other sites

  • 0

here u have a part block of wai missions. for flares and smoke....try to identify wheres is defined  sunOrMoon

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

i will check that out now.

 

I just got the boxes to empty. Had to put

                ClearWeaponCargoGlobal _SupplyBox;
                ClearMagazineCargoGlobal _SupplyBox;

on lines 113 and 114 where the boxes were created on the ground. Thanks for helping me with the global thing though. That was my whole problem.

 

Now im gonna try to get these flares working. Thanks again!!!!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...