_hasruck = false;
_ruckType = "";
_ruckMags = [];
_ruckWeps = [];
// Checks if the unit calling the script has a ruck sack.
_hasruck = _unit call ACE_Sys_Ruck_fnc_hasRuck;
// If the previous is true, then we want to set the variables to nil so that the ruck is empty before deletion.
if (_hasruck) then
{
_unit setVariable ["ACE_RuckMagContents", nil];
_unit setVariable ["ACE_RuckWepContents", nil];
_unit setVariable ["ACE_RuckMagContents", _ruckMags, true];
_unit setVariable ["ACE_RuckWepContents", _ruckWeps, true];
};
//