ID:179818
Oct 29 2001, 3:48 pm
|
|
How do you make it so that the player has to be within one tile of the obj to be clicked for the Click() proc can be called?Edit:Nevermind I figured it out. I'm so smart :D
|
Copyright © 2024 BYOND Software.
All rights reserved.
The quick answer is this:
mob/Click()
if(usr == src)
return
if(src in oview(1))
Whatever(src)
That way, the game checks to see if src is next to you, then it does whatever. The other part says that if usr is whoever you're clicking, nothing will happen.
You don't happen to be making a DBZ game do you?
Hmm, I guess I should learn to type quicker, then, huh? =)