Forum

> > CS2D > Scripts > killobject
Forums overviewCS2D overview Scripts overviewLog in to reply

English killobject

3 replies
To the start Previous 1 Next To the start

old killobject

tos12345678
User Off Offline

Quote
There is a script that remove each object type == 23 on the map?
e.g.
1
timer(1000,"parse","killobject -all objects type 23-

please help.

old Re: killobject

SkullFace
User Off Offline

Quote
You want all objects that are named type 23 or do you mean the object that goes by id 23 ? (blue portal)

old Re: killobject

Cure Pikachu
User Off Offline

Quote
@user SkullFace: Object type 23 are blue portals, so all of those.
1
2
3
4
5
6
7
8
9
10
function killallobject(t)
	t = tonumber(t)
	for _, i in pairs(object(0,"table")) do
		if object(i,"type") == t then
			parse("killobject "..i)
		end
	end
end

timer(1000,"killallobject","23")
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview