Jump to content
  • 0

How to add custom objects to a mission | R3F Logistic


RundeEcke

Question

Hi,

 

I add the R3F Logistic Script from R3F ( http://makearmanotwar.com/entry/4DWDt4DY7i#.VPGanfmG-ar). All functions working. But I have only one problem: I dont know how I can spawn cutom Items like a Sandbackwall/fence?

 

My idea was a Mission... Player search Cargobxes with this Items:

 

 

_centerpos = getmarkerpos "Marker1";
_aadis = [42,100,150] call BIS_fnc_selectRandom;
_aadir = random 360;
_aapos = [(_centerpos select 0) + sin(_aadir)*_aadis,(_centerpos select 1) + cos(_aadir)*_aadis];
_box1 = createVehicle ["box_ind_ammoveh_f", _aapos, [], 0, "NONE"];
 
  
//_box1 = createVehicle ["box_ind_ammoveh_f", [getMarkerPos "marker1" +15,0], [], 0, "NONE"];
clearWeaponCargoGlobal _box1;
 
clearMagazineCargoGlobal _box1;
_box1 addobjectcargoGlobal ["Land_BagFence_Corner_F", 2];
_box1 addobjectcargoGlobal ["Land_BagFence_End_F", 1];
_box1 addobjectcargoGlobal ["Land_BagFence_Long_F", 1];
_box1 addobjectcargoGlobal ["Land_BagFence_Round_F", 3];
_box1 addobjectcargoGlobal ["Land_BagFence_Short_F", 1];
_box1 addobjectcargoGlobal ["Land_HBarrier_1_F", 3];
_box1 addobjectcargoGlobal ["Land_HBarrier_3_F", 1];
_box1 addobjectcargoGlobal ["Land_HBarrier_5_F", 4];
_box1 addobjectcargoGlobal ["Land_HBarrierBig_F", 2];
...
 
I test it, but the box was empty.
 
Now I havent an idea how can I fix it.
 
Thanks for help.
RundeEcke
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...