is it possible to remove a building on a particular X Y position without any kind of explosion? I need a script that is like the opposite of spawnobject.
Secondly, is it possible to check the current HP of a building?
Thanks in advance!
Scripts
Remove Building on X Y | Check HP of Building
Remove Building on X Y | Check HP of Building
1

If the building is anything but a Turret (and it's upgraded versions)/Dispenser/(Super) Supply, use
killobject. Otherwise, nope, not possible.
object(oid,"health"), where
oidis the object ID. How you get the object ID will largely depend on what parameters the hook provides.
function removeobject(x,y)
	local obj = objectat(x,y)
	if obj > 0 then
		parse("killobject "..obj)
	end
end
5unuy has writtenfunction removeobject(x,y)
	local obj = objectat(x,y)
	if obj > 0 then
		parse("killobject "..obj)
	end
end
Cure Pikachu^^ I will try to use your advice
AtomKuh Oh my bad, sorry I thought you mean a command for killobjects without explosion command, @
VADemon: said it already its not possible
1
