I want to remove all buildings in the map. So I'm using killobject, that's fine, removes all buildings but also removes the other things like images. Yeah, that is the problem here. I only want to remove all buildings, no others.
I just tried few things but I didn't get the correct code yet;
1
2
3
4
5
6
2
3
4
5
6
local objectlist=object(0,"table") for _,id in pairs(objectlist) do 	if object(id,"health") > 0 then 		parse("killobject "..id) 	end end
1
2
3
4
5
6
2
3
4
5
6
local objectlist=object(0,"table") for _,id in pairs(objectlist) do 	if object(id,"type") <= 23 then 		parse("killobject "..id) 	end end
I hope you guys understand me!
Thanks.