====== ArmA 3 Support Module Supply Drop ======
[[https://www.pmctactical.org/forum/viewforum.php?f=68|ArmA 3 Forum]], [[:arma3|ArmA 3]], [[arma3:config|ArmA 3 Config]], [[arma3:missions|ArmA 3 Missions]], [[arma3:modeling|ArmA 3 3D Modeling]], [[arma3:scripting|ArmA 3 Scripting]], [[arma3:terrain|ArmA 3 Terrain]], [[arma3:texturing|ArmA 3 Texturing]], [[arma3:tools|ArmA 3 Tools]]
2022-06-19T19:08:00Z
Place a crate down in 3Den and edit its contents to your liking, be it default or virtual.
Give the crate a name for instance 'myCrate'.
Set it as hidden by unticking showModel option in Object: Special States.
Place this in its init.
fnc_get3DENLoadout =
{
params["_veh"];
_virtualCargo =
[
[_veh call BIS_fnc_getVirtualWeaponCargo, []],
[_veh call BIS_fnc_getVirtualMagazineCargo, []],
[_veh call BIS_fnc_getVirtualItemCargo, []],
[_veh call BIS_fnc_getVirtualBackpackCargo, []]
];
if (_virtualCargo findIf{count (_x select 0) > 0} > -1) then
{
_veh setVariable ["loadout", [_virtualCargo, true]];
}
else
{
_veh setVariable["loadout",
[
[
getWeaponCargo _veh,
getMagazineCargo _veh,
getItemCargo _veh,
getBackpackCargo _veh
],
false
]
];
};
};
this call fnc_get3DENLoadout;
Then in the SupplyDrop modules crate init line place:
[_this, myCrate getvariable "loadout"] call BIS_fnc_initAmmobox;
[[https://forums.bohemia.net/forums/topic/190896-supply-drop/?do=findComment&comment=3026679|Source bis forums Larrow 2016]]