we break buildings, image will disapprear instantly, will this possible?
Forum
CS2D Maps/Editor is there anyway to remove image over the building?is there anyway to remove image over the building?
5 replies 1
we break buildings, image will disapprear instantly, will this possible?
Your text is confusing me,sry.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
1