obj
Grass
icon = 'Grass.dmi'
mouse_drag_pointer = 'Grass.dmi'
MouseDrop(over_object,src_location,over_location,src_control,over_control)
if(over_location == null)
return
else
new /obj/Grass(locate(over_control))
TestCopy
icon = 'Test.dmi'
Problem description:
How would I make it replace the tile that I stop dragging the mouse? I want it to drag from Grass, then replace TestCopy with a new copy of Grass.
As for your error, you need to change locate(over_control) to locate(over_location).