Forum

> > CS2D > Scripts > killobject
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch killobject

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt killobject

tos12345678
User Off Offline

Zitieren
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.

alt Re: killobject

SkullFace
User Off Offline

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

alt Re: killobject

Cure Pikachu
User Off Offline

Zitieren
@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")
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht