kouli2fraiz 12 Posted October 27, 2016 Hello, in my mission I use cargo = "B_supplyCrate_F" createVehicle getpos thistrigger;cargo setPos [getPos thistrigger select 0, getPos thistrigger select 1, 400];[objnull, cargo] call BIS_fnc_curatorobjectedited; To make a air drop. I put this in the "on act" field of a trigger.At the moment it simply drops a crate with some stuff inside, how can I make it a virtual arsenal ? Share this post Link to post Share on other sites
theend3r 83 Posted October 27, 2016 https://community.bistudio.com/wiki/BIS_fnc_arsenal ["AmmoboxInit",[cargo,true,{true}]] spawn BIS_fnc_arsenal; 3 Share this post Link to post Share on other sites
kouli2fraiz 12 Posted October 27, 2016 Can you explain more ? I dont understand.I grabbed the previous code from a topic on the forum and I am not really good at scripting... Share this post Link to post Share on other sites
Boerstil 8 Posted October 27, 2016 cargo = "B_supplyCrate_F" createVehicle getpos thistrigger;cargo setPos [getPos thistrigger select 0, getPos thistrigger select 1, 400];[objnull, cargo] call BIS_fnc_curatorobjectedited; ["AmmoboxInit",[cargo,true,{true}]] spawn BIS_fnc_arsenal; Share this post Link to post Share on other sites
Beerkan 71 Posted October 27, 2016 cargo = "B_supplyCrate_F" createVehicle getpos thistrigger;cargo setPos [getPos thistrigger select 0, getPos thistrigger select 1, 400];[objnull, cargo] call BIS_fnc_curatorobjectedited; ["AmmoboxInit",[cargo,true,{true}]] spawn BIS_fnc_arsenal; Might need to replace spawn with call if this is in a trigger. And I thought I recognised this code.. https://forums.bistudio.com/topic/173924-parachute-ammobox/ Share this post Link to post Share on other sites
kouli2fraiz 12 Posted October 28, 2016 Yes exactly Beerkan !! I checked and it's you in the topic I found that posted this haha :) Share this post Link to post Share on other sites
kouli2fraiz 12 Posted October 29, 2016 Is it possible to attach an IR grenade to the crate ? So we can see it in the night 1 Share this post Link to post Share on other sites
ArmaMan360 94 Posted October 29, 2016 Is it possible to attach an IR grenade to the crate ? So we can see it in the night _ir = "B_IRStrobe" createVehicle getpos thistrigger; _ir attachTo [cargo, [0,0,1]; maybe this? Got this from: https://forums.bistudio.com/topic/169218-ir-grenade-attached-to-units/ Share this post Link to post Share on other sites
thedubl 43 Posted October 30, 2016 Here is what I use. Support610.sqf /********************************************************************Supply drop dubl 2015 call script in trigger or action execVM "scripts\Support610.sqf"*******************************************************************/hint "Supplies Inbound";_para = createVehicle ["B_Parachute_02_F", [0,0,100], [], 0, "FLY"];_para setPosATL (player modelToWorld[0,0,200]);_veh = createVehicle ["B_CargoNet_01_ammo_F", [0,0,80], [], 0, ""];_veh attachTo [_para,[0,0,0]];_flare = "F_20mm_Red" createvehicle ((player) ModelToWorld [0,35,300]);_flare setVelocity [0,0,-10];_flare2 = "F_20mm_Red" createvehicle ((player) ModelToWorld [35,0,300]);_flare2 setVelocity [0,0,-10];_flare3 = "F_20mm_Red" createvehicle ((player) ModelToWorld [0,-35,300]);_flare3 setVelocity [0,0,-10];//for vas use[[_veh,["[610] Arsenal", {["Open",true] spawn BIS_fnc_arsenal},[_veh],0,false,true, "",'alive _target']],"addAction",true,true,false] call BIS_fnc_MP;// Land safelyWaitUntil {((((position _veh) select 2) < 0.2) || (isNil "_para"))};detach _veh;_veh SetVelocity [0,0,-5];sleep 0.3;_veh setPos [(position _veh) select 0, (position _veh) select 1, 1];_veh SetVelocity [0,0,0]; sleep 600;deleteVehicle _veh; 2 Share this post Link to post Share on other sites