Jump to content
kouli2fraiz

Paradropping an arsenal

Recommended Posts

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

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


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
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

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

Is it possible to attach an IR grenade to the crate ? So we can see it in the night

  • Like 1

Share this post


Link to post
Share on other sites

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 safely
WaitUntil {((((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;

  • Like 2

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

×