-How do you make it to where a certain user clicks his/her object then clicks a spot on the turf and makes it go there.
-If possible could you also tell me how to select multiple objects at once.
ID:158327
![]() Sep 19 2009, 10:18 am (Edited on Sep 19 2009, 10:27 am)
|
|
Kokomo0020 wrote:
-How do you make it to where a certain user clicks his/her object then clicks a spot on the turf and makes it go there. For the 2nd one..... List? Or do you want something visual? If thats, it, then i guess try writing the values in your handy little list to stat panel...? Or did you want a hud? If so, forget about, because the few people who know about won't tell you. |
So would I do this:
obj/Click() Because you still didn't explain how to click the object(not mob) then the turf to make the object move there. |
Try adding the object clicked to a list, or give it a variable to decide if anything should move to the turf you clicked...
mob/var/list/selected=new But don't take it from me, I have no idea what I'm talking about! :) |
Kokomo0020 wrote:
So would I do this: obj/Click() Because you still didn't explain how to click the What, I don't understand what you mean, where did /obj come from? I thought you wanted /turf/Click(). |
Neos300 wrote:
Or did you want a hud? If so, forget about, because the few people who know about won't tell you. You seem awfully bitter about this for some reason. All you really need to know about a HUD is in the reference. |
Nope. What I'm looking for is where a user, and that user only, can select an object by clicking it then send it to where they want it to go to by then clicking the area on the turf.
|
Oh jeez dude, thanks. Exactly what I was looking for. I can't ever understand the guide so your amazing.
|
Kokomo0020 wrote:
Nope. What I'm looking for is where a user, and that user only, can select an object by clicking it then send it to where they want it to go to by then clicking the area on the turf. atom Small documentated example. |
Garthor wrote:
Neos300 wrote: Really? I honestly did not know that. Thank you for helping me find this out. |
Well there is a procedure to handle clicking, guess what it's called?
Click()
There are actually two methods of doing this, here are both:
Method 1:
In this method, Click() is called when the turf has been clicked.
Method 2:
In this method, Click() is called when a client clicks a /turf (T), I am also calling the default action which calls the objects Click() procedure along with the arguments (location, control and params) - You can look up more on this in the Click() reference.