ID:180784
 
Hey anyone, I just wanted to know how do you use DblClick to click on another turf and not yourself. Its really agravated me that I can only use DblClick() on myself and not another mob or turf. Help anyone???
Hey anyone, I just wanted to know how do you use DblClick to click on another turf and not yourself. Its really agravated me that I can only use DblClick() on myself and not another mob or turf. Help anyone???

As far as I know, you should be able to do this just fine. Just remember that DblClick is defined for every type. So you could try something like this, to make a fast-paced, entertaining game where the player loses when he double-clicks a turf. :)

mob
DblClick()
usr << "You double-clicked on [src]!"

turf
DblClick()
usr << "You double-clicked on [src]! YOU LOSE!"
del usr
In response to Guy T.
On 2/17/01 7:13 am Guy T. wrote:
Oh, ok, I had put the DblClick() in my /mob/player. I guess I should place it in the mob or turf that I want to click on. Thanks! =)