/datum/buildmode/spawn_inside name = "Object Spawn (place inside)" desc = {"***********************************************************
Right Mouse Button on buildmode button = Set object type
Left Mouse Button on mob/obj = Place object inside object or turf
Right Mouse Button = Delete an object from contents
***********************************************************"} icon_state = "buildmode_putin" var/objpath = null click_mode_right(var/ctrl, var/alt, var/shift) objpath = get_one_match(input("Type path", "Type path", "/obj/closet"), /atom/movable) click_left(atom/object, var/ctrl, var/alt, var/shift) if (!objpath) boutput(usr, "No object path!") return var/atom/movable/M = object if(istype(M) && objpath) new objpath(object) blink(get_turf(object)) click_right(atom/object, var/ctrl, var/alt, var/shift) var/atom/movable/M = object if (istype(M)) if (!M.contents.len) return var/which = input("Delete what from [M]'s contents?", "Deleting contents", null) as null|anything in M.contents if (which) qdel(which)