obj/Item
var
MouseDrop(over_object,src_location,over_location,src_control,over_control,params)
if(src_control=="backpack"&&over_control == "default.map1")
src.Drop()
I'm trying to create an item drop system and equip it by dragging it from the backpack, I'm not having success, could anyone help me?
But also, you really want to implement this the other way around:
Now you've got a function that allows you to respond to when an item is dropped on something.
Let's add dropping behavior when you drag it over an atom on the map.
You can also override this function for any UI objects that need to receive items from a drag and drop.