ID:158154
 
obj
Delete
Click()
if(owner) del owner
del src


This is a fairly simple concept of a delete button i'm trying to create, simple enough right? Well, is there any way possible to get this object only showing to a certain mob while having the actual obj hover upon another thing(This thing will be moving)?
/image is the answer, my friend.
In response to Jemai1
I tried that and /image doesn't seem to want to be clicked :(
In response to Axerob
Of course. Clicking the image would be like clicking on the atom where you placed it.

If I get what you are trying to do correctly, I'll do something like..
object/Delete
icon = null
var/tmp/image/image
proc
Show(mob)
if(!image)
image = new(icon='icon.dmi',loc=src,layer=FLOAT_LAYER)
mob << image
Click()
if(owner) del owner
del src
In response to Axerob
An /image is nothing more than a graphical extension of what it is attached to. If you attach it to an instance of /MyObj, /MyObj's Click() is called when you click the image.

If I correctly understand what you're asking, then, if you want to delete object X, you need to implement either an /image attached to it and use X's Click(), or you need to make a seperate object and just keep moving it when X moves, and always keep it moved just above X.