ID:271063
![]() Dec 29 2006, 2:30 pm
|
|
How would I drag a mob,obj or turf around that is NOT on my hud?
|
![]() Dec 29 2006, 2:53 pm
|
|
are you trying to make telenisis?
|
Umm, whats the problem..? Just drag it with your mouse; left click the atom and while still holding down the left mouse button, move your mouse :P
To make it do something, override that atom's MouseDrag() proc. |
Masuko Shintaro wrote:
How would I drag a mob,obj or turf around that is NOT on my hud? I just made this for you, and tested it, no bugs in it. I made 2 different codes, one that lets the mob or obj move to the location of your mouse pointer while dragging. And one code that teleports the mob or obj to the location of your mouse pointer ( when you released your right mouse after holding the mob or obj ) Its up to you which one you need! Number 1 MouseDrag(atom/movable/Old,atom/New) Number 2 MouseDrop(atom/movable/Old,atom/New) I hope that this is of any help to you. |