function c_deleteunit(x, y, target) { if target.data.name == "Rei'sen" { textbox_create(txt_win); c_inheritunit(0, 0, un.bunny, ARMY.THEM); } array_remove(global.map[x][y].contents, target); //global.map[x][y].contents = []; array_remove(global.units[target.alignment], target); instance_destroy(target); }