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 (#1)
No, I want constant movement.
In response to Artemio (#2)
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 (#4)
Can you show us? I would like to know how you did it.
In response to KirbyRules (#5)
mob
MouseDrag(src_location) step_to(src,src_location,0)
In response to Artemio (#6)
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 (#7)
Why did you take that out of Maz's alternative movement demo, without even crediting him for the snippet?
In response to Cheetoz (#8)
Edited. (Sorry, I always forget to give credit.)