//Объявление переменных
_pl = _this select 0;
_id = _this select 2;
_ar = _this select 3;

_cr = _ar select 0;
_veh = _ar select 1;
_a_veh = _ar select 2;

_pos = getpos _cr;
_vecu = vectorUp _cr;
_vecd = vectorDir _cr;

//Замена ящика техникой

_pl removeaction _id;
deletevehicle _cr;
deletemarker "dzmenu";
_t = createVehicle [(_a_veh select _veh), _cr,[],0,"none"];
_t setpos _pos;
_t setvectorDirAndUp [_vecd,_vecu]; 

