Forum

> > CS2D > Scripts > clean items from floor
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch clean items from floor

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt clean items from floor

Sudden Death
User Off Offline

Zitieren
Like in title, is it possible to clean items from floor?
Like from x 11 y 11 to x 15 y 15 clean all items on floor and npc, if possible (but no with explosion)

second question: spawnnpc haven't got health parametr, so i can't spawn npc with specified amount of health?
1× editiert, zuletzt 02.03.13 11:28:09

alt Re: clean items from floor

iii
User Off Offline

Zitieren
user Sudden Death hat geschrieben
second question: spawnnpc haven't got health parametr, so i can't spawn npc with specified amount of health?


1
2
3
4
5
6
7
parse("spawnnpc 1 "..player(id,"tilex").." "..player(id,"tiley").." 0")
local objectlist=object(0,"table")
for _,npcid in pairs(objectlist) do
	if object(npcid,"health")==150 and object(npcid,"type")==30 then
		parse("damageobject "..npcid.." -850 0")
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht