#include "..\script_component.hpp"

params ["_unit", "_killer", "_instigator", "_useEffects"];

if (!isPlayer _unit) exitWith {};

private _unitPos = getPosATL _unit;
private _bodyBag = createVehicle [QCLASS(bodyBag), _unitPos, [], 0, "NONE"];

[_unit] call FUNC(saveDroppedWeapons);
[_unit, _bodyBag] call FUNC(moveInventory);