
I want to remove all buildings in the map. So I'm using

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.