Forum

> > CS2D > Maps/Editor > is there anyway to remove image over the building?
ForenübersichtCS2D-Übersicht Maps/Editor-ÜbersichtEinloggen, um zu antworten

Englisch is there anyway to remove image over the building?

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

useigor
User Off Offline

Zitieren
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.
1× editiert, zuletzt 18.12.13 18:18:51
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Maps/Editor-ÜbersichtCS2D-ÜbersichtForenübersicht