Forum

> > CS2D > Scripts > free images
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch free images

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt free images

Quattro
GAME BANNED Off Offline

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

alt Re: free images

DC
Admin Off Offline

Zitieren
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)

alt Re: free images

Yates
Reviewer Off Offline

Zitieren
Make sure you set all the assigned variables you used for images to nil or you'll run into issues.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht