Jump to content
Sign in to follow this  
Da_Hollander

Question regarding the [R3F] Logistics script

Recommended Posts

Hello all,

 

I'm currently working on a mission script and I'd like to add objects into a land cargo container using the R3F Logistics script.

I've read the documentation available here http://team-r3f.org/madbull/logistics/EN_DOCUMENTATION.pdf. Chapter 3 part 1 to be more specific.

 

With this documentation I've tried setting up a script that I can request with the radio menu.. The script is here

_target = _this select 0;

_location = getPosWorld _target;

if (credits<2) exitWith  
{
  ["info",["Not enough credits","Not enough credits (2 credits required)"]] call bis_fnc_showNotification;
};
credits = credits - 2;
publicVariable "credits";

hint "A building supply crate has been dropped near your location";

_parachute = "B_Parachute_02_F" CreateVehicle _location;
_parachute setPos [_location select 0, _location select 1, (_location select 2)+100];

_object = "Land_Cargo20_military_green_F" CreateVehicle [_location select 0,_location select 1,(_location select 2)+50];
_object attachTo [_parachute,[0,0,0]];
clearWeaponCargoGlobal _object;  // Remove Cargo of Pod 
clearMagazineCargoGlobal _object;
clearItemCargoGlobal _object;
clearBackpackCargoGlobal _object;

_object setVariable ["R3F_LOG_disabled", false, false];

 _object = [
 this, 
   [ 
    ["bagfence_base_f", 2], 
    ["land_bagbunker_small_f", 2], 
    ["sign_f", 2],
    ["land_cncbarrier_stripes_f", 2], 
    ["land_razorwire_f", 2]
  ] 
]execVM "scripts\R3F_LOG\USER_FUNCT\auto_load_in_vehicle.sqf";	
                                                                          
waitUntil {sleep 1; getPosWorld _object select 2<0.2};
_smoke = "SmokeShellYellow" CreateVehicle (getPosWorld _object);
["info",["Supply delivered","The supply crate has been marked with green smokes"]] call bis_fnc_showNotification;

The container gets dropped but when i check the "vehicle's content", there is nothing inside. Does anyone have any clue what is going wrong?

 

Thanks in advance.

Share this post


Link to post
Share on other sites

I've tried replacing "this" with "_object" but unfortunately this does not fix anything. The objects 'vehicle content' stays empty..

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×