Forum

> > CS2D > Scripts > free images
Forums overviewCS2D overview Scripts overviewLog in to reply

English free images

4 replies
To the start Previous 1 Next To the start

old free images

Quattro
GAME BANNED Off Offline

Quote
I do not trust freeing images from saved values in table, how to free all images like round start does?

old Re: free images

DC
Admin Off Offline

Quote
Images are certain types of objects so you can use cs2d lua cmd object to get them all:
1
2
3
4
5
6
local objectlist=object(0,"table")
for _,id in pairs(objectlist) do
   if oject(id, "type") == 40 then
	freeimage(id)
   end
end
(untested)

old Re: free images

Yates
Reviewer Off Offline

Quote
Make sure you set all the assigned variables you used for images to nil or you'll run into issues.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview