ID:2131348
 
(See the best response by Kaiochao.)
Problem description: So I want to drag an item from inventory but instead of using interface grids i have a pop out hud that i want to drag it to, how could i work that location?

Did you check the DM Reference entry for "MouseDrop proc"?
i did but i didnt really understand how i could specify for it to drop over a certain icon on my hud
In response to William1of89
Best response
When a client drags and drops an object onto something, the engine calls client.MouseDrop(object, etc.), which by default calls object.MouseDrop(etc.). You can override one of those in order to add "on mouse drop" behavior.

Here's the part of the DM guide on about procs and overriding:
http://www.byond.com/docs/guide/chap06.html

If you have your code set up so that all items derive from some base /obj/item type:
obj/item

// Override atom.MouseDrop(); all arguments are provided by the BYOND engine.
MouseDrop(over_object, src_location, over_location, src_control, over_control, params)

// If the item was dropped on a HUD object, then over_object refers to that HUD object.
ohhhh ok i see i was looking at it completely wrong! Thanks for help kaiochao!