ID:167643
 
How would I use either of these two to make it to where I can drag mobs with my mouse and have it constantly move the mob while I'm dragging and when the mouse enters a new turf?
obj
MouseDown(location,icon_x,icon_y)
src.mouse_drag_pointer=src.icon_state
src.OrigIcon=src.icon_state
..()
MouseDrop(over_object,src_location,over_location)
src.loc=over_location
src.icon_state=src.OrigIcon


is this what you looking for???
In response to Dmingmage
No, I want constant movement.
In response to Artemio
ummmm.....i had it doing that, but i dont remeber...you want it so your cursor becomes the mob
Nevermind, figured it out.
In response to Artemio
Can you show us? I would like to know how you did it.
In response to KirbyRules
mob
MouseDrag(src_location) step_to(src,src_location,0)
In response to Artemio
This is better:

mob
MouseDrag(atom/M,turf/Y,turf/T)
if(isturf(Y) && isturf(T)) // incase of clashes with statpanels
if(!Y.density) // dont allow them to be fighting to get into a turf
if(!T.density)
if (usr == src) // checks the owner of the mob is the client
walk_to(src,T,0,2)
.=..()

//All credit for this snipit goes to Maz for creating it.
In response to KirbyRules
Why did you take that out of Maz's alternative movement demo, without even crediting him for the snippet?
In response to Cheetoz
Edited. (Sorry, I always forget to give credit.)