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?
ID:167301
![]() Apr 1 2006, 11:30 pm
|
|
Well, how do you delete images, but in another verb/proc in which it was created? I tryed
var/image/owner But.. That didn't really work, you see.. Any thoughts? |
![]() Apr 1 2006, 11:51 pm
|
|
There's an images client variable, it stores all of the images you can see.
|
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() |