we break buildings, image will disapprear instantly, will this possible?
Forum
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.
objectkill and remove the image you want to remove. 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 05:18:51 pm
1

Offline