ID:167301
 
Well, how do you delete images, but in another verb/proc in which it was created? I tryed
var/image/owner
mob/verb/image()
var/image/i=image('icon.dmi',usr)
i.owner=usr
usr<<i
mob/verb/delimage()
for(var/image/i in world) if(i.owner==usr) del(i)


But.. That didn't really work, you see.. Any thoughts?
There's an images client variable, it stores all of the images you can see.
for(var/image/I in client.images)
if(I.variable == "something")
del(I)
In response to Nadrew
Nope, doesn't seem to work o.O?
In response to Mysame
Your attempted addition of an owner variable to the /image type isn't going to work, since you defined it as a global variable of type /image rather than as an /image variable. =P

You don't need it anyway, since you already know who owns the images in the client.images list; it's that client. =)

So:

mob/verb/delete_my_images()
for (var/image/I in src.client.images)
del I
In response to Crispy
... Do I love you guys?
In response to Mysame
You better. :P