Forum

> > CS2D > Maps/Editor > is there anyway to remove image over the building?
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English is there anyway to remove image over the building?

5 replies
To the start Previous 1 Next To the start

old Re: is there anyway to remove image over the building?

useigor
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
stroys = {}

function shit(objID)
	local id = tonumber(objID)
	stroys[id] = image("gfx/flare1.bmp",object(id,"x")+16,object(id,"y")+16,1)
end

addhook("build","stroy")
function stroy(id,type,x,y,mode,objID)
	timer(1,"shit",objID)
end

addhook("objectkill","destroy")
function destroy(objID,player)
	if stroys[objID] ~= nil then
		freeimage(stroys[objID])
		stroys[objID] = nil
	end
end

I can't guarantee that this script will work correctly but i didn't noticed unexpected events.
edited 1×, last 18.12.13 06:18:51 pm
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview