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!
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
function removeobject(x,y) 	local obj = objectat(x,y) 	if obj > 0 then 		parse("killobject "..obj) 	end end