ok so the cross appears but the problem is that there wont spawn the mags food and backpack on the ground, weapons are ok but the rest isnt there.
any ideas?
// Create the tombstone objects.
_graveBase = createVehicle ["GraveCross2", position _body, [], 0, "NO_COLLIDE"];
_graveBase setPosATL position _body; // setPos again because arma.
_graveBase setDir _playerDir;
// Create a loot container inside the grave.
_tempContainer = createVehicle ["weaponHolder", getPosATL _graveBase, [], 0, "can_collide"];
_containerLoc = getPosATL _tempContainer;
_containerLoc = [((_containerLoc select 0) + 0),((_containerLoc select 1) + 0),0];
_tempContainer setPosATL _containerLoc;
// Add the weapons that were on the player to the new weapon container.
{
_tempContainer addWeaponCargoGlobal [_x,1];
} forEach _playerWeapons;
// Add the magazines that were on the player to the new weapon container.
{
_currMagazine = _x select 0;
_currMagAmmoCount = _x select 1;
// TODO: Figure out how to use this once the magazine is inside the cargo container...
_currMagCapacity = (getNumber(configFile >> "CfgMagazines" >> _currMagazine >> "count"));
_newAmmoAmount = _currMagAmmoCount / _currMagCapacity;
_tempContainer addMagazineCargoGlobal [_currMagazine,1];
} forEach _magazineArray;