ID:268672
 
Tell me if this is too advanced, or not. :o

client
MouseDrag(/obj/weapon,/obj/hud,src.contents,/obj/hud)
MouseDrop(/obj/weapon,world,atom/A,/obj/hud)

o.O
Would dragging a weapon to the hud thingie work like that?
If you wrote code for it, yes. ;)

I don't see why you have world as one of the parameters though. You never have to pass the world into any function.

Also, be sure to check that whatever is being dragged and what is dragged over (or dropped) is the type in question.
In response to Loduwijk
_>
Okay, I think I'll do this later...
An hours worth of working on it, nothing.
Soo... just forget about this topic.
In response to Hell Ramen
Make it easy on yourself and just use the MouseDrop of the object in question.
obj/MyObj
MouseDrop(atom/over_object)
if(ismob(loc)&&loc!=usr)return
/*the above is for while you are still dragging
it, you can't finish and drop to take it away
from someone who grabbed it faster*/

if(istype(over_object,/obj/hud/item_placeholder))
loc=usr
var/obj/hud/item_placeholder/O=over_object
screen_loc=O.screen_loc
usr.client.screen+=src