mob
Player
Click()
Attack()
return ..()
How would I pass on the Clicked User? Like this?:
mob
Player
Click()
Attack(mob)
return ..()
Thanks for any help in advance, ^_^
ID:170908
Dec 1 2004, 12:29 pm
|
|
Hey, how would I go about passing the Click(ee) as an argument to like an attack proc? Say I have this here:
mob How would I pass on the Clicked User? Like this?: mob Thanks for any help in advance, ^_^ |
mob That should work, i'm sort of new to passing vars as you can tell from my post I think below this. |
In response to N1ghtW1ng
|
|
Aiight, thanks, when I said click(ee), I meant the user that was just clicked. I believe I understand now, Thank you very much.
|
In response to Lenox
|
|
Actually, if you want the person clicking the mob to attack that mob, you would most likely want the usr's (the mob doing the clicking) Attack() proc with src (the mob clicked on) as the argument. Use "usr.Attack(src)".
|
In response to Shadowdarke
|
|
Loduwijk wrote:
usr.Attack(src) From what he said, I assume he was replying to me; though he attached his reply to the other post. I assume this because he answered the question I asked. At least I hope so. I won't go on about the whole thanking the wrong person bit, as I think we've brought that up before. The forum needs to be fixed up a bit. It often comes up in view-all mode for me, seemingly at random times when I'm clicking on posts. Perhaps it does that for others as well and they don't click on the right reply that comes up with all the posts. |
I don't quite understand what you meant by that.
That doesn't really help explain what you meant.
The clicked mob and the user are two seperate objects. Which do you want to pass? I am going to assume you want to attack what you click, so you would want to do usr.Attack(src) if that is the case.