Forum

> > CS2D > Scripts > Script about Building
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script about Building

4 replies
To the start Previous 1 Next To the start

old Script about Building

kalis
User Off Offline

Quote
Hey all
i need help :
i want to remove image when i destroy a building?
     + When destroy a Building (dispenser,wall,...)
     + my picture will be remove
how i can write my ideas with code ?

old Re: Script about Building

MikuAuahDark
User Off Offline

Quote
1
2
3
4
addhook("objectkill","blabla")
function blabla()
	freeimage(bla)
end
just use objectkill and object function(object(id,"bla"))

old Re: Script about Building

kalis
User Off Offline

Quote
oh i'm stupid @ @
thank

ok . IF i want to remove image when i destroy dispenser
1
2
3
4
5
6
addhook("objectkill","blabla")
function blabla()
	if type == 7 then
		freeimage(haha)
	end
end

old Re: Script about Building

MikuAuahDark
User Off Offline

Quote
no, not like that!
1
2
3
4
5
6
addhook("objectkill","blabla")
function blabla(objid,id)
	if object(objid,"type")==7 then
		freeimage(haha)
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview