Forum

> > CS2D > Scripts > clean items from floor
Forums overviewCS2D overview Scripts overviewLog in to reply

English clean items from floor

2 replies
To the start Previous 1 Next To the start

old clean items from floor

Sudden Death
User Off Offline

Quote
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?
edited 1×, last 02.03.13 11:28:09 am

old Re: clean items from floor

iii
User Off Offline

Quote
user Sudden Death has written
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview