Forum

> > CS2D > Scripts > Lua Question - freeimage only works once
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Question - freeimage only works once

No replies
To the start Previous 1 Next To the start

old Lua Question - freeimage only works once

EngiN33R
Moderator Off Offline

Quote
So I'm making the Minecraft Beta mod, right now I'm making the built-block-breaking part, and I stumbled upon this god damn problem which I can't solve for a week already. I use some functions to find blocks/images/objects on a certain tile, and image variables for each block (as a table), and with all these functions, freeimage on objectkill only removes the image once, if I build another block, and its image (obviously) takes the ID of the previously built one, somehow it breaks and the image isn't being removed. The code of the objectkill hook itself and all the functions connected to it, and the block building function (not in the right order):
Spoiler >


Remember, the only part that doesn't work is the freeimage part, everything else works, like, please, don't mess with it :C
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview