Affect(mob/M as mob in world)
I've put myself in a situation where I can't do that. Basically I just need to be able to delete another client by defining them as a global mob/variable/anything I don't care just as long as its global.
Please help!
ID:157812
![]() Dec 28 2009, 3:53 pm (Edited on Dec 28 2009, 7:49 pm)
|
|
How do you define the usr as a global mob, so other clients can affect them. Don't say use something like
Affect(mob/M as mob in world) I've put myself in a situation where I can't do that. Basically I just need to be able to delete another client by defining them as a global mob/variable/anything I don't care just as long as its global. Please help! |
"Basically I just need to be able to delete another client by defining them"
//Example Now in that example "player2.Del()" wouldn't work...so I need some way of doing something like that. |
Railon wrote:
Now in that example "player2.Del()" wouldn't work...so I need some way of doing something like that. One solution would be to use "del player2" instead of calling "player2.Del()" |
Well the point of the proc is to kill the other client, but killing player2 won't actually do anything because thats not the other client, only a variable that equals the client. I need a way to make the client equal a variable so that player2 IS the other client.
Quite confusing, aint it? |
Only confusing in that you have not actually tried what has been suggested and are instead assuming it doesn't work.
I suppose you may be wondering why you can't call a proc on those variables, in which case you need to specify the type of the variable yourself, for the compiler. So, instead of var/player1, it would be var/mob/player1. |
O.O I admit my logic was a little flawed there, doesn't mean you have to be a jerk about it I didn't have time to test it as I was doing other things.
Thanks Kuraudo :D |
Railon wrote:
O.O I admit my logic was a little flawed there, doesn't mean you have to be a jerk about it Nobody's being a jerk, they're just answering your question. People wonder why the helpers on the programming forum are so rude, maybe they should look at how rude they're being to the helpers. |
Garthor wrote:
Only confusing in that you have not actually tried what has been suggested and are instead assuming it doesn't work. Because he couldn't have just said "It works, I tested it"? Backfiring my little comment on me is not what I call helpful. Oh and that second line he wrote, like this sentence, was edited in after my post.... Now stop wasting my time, the problem is solved and your just beeping my pager for no reason. |
Beep beep.
I don't see how Garthor's post was offensive at all. Maybe you should first evaluate yourself before you evaluate others. |
People you can't just jump into a situation and think you can evaluate it all. I said "Quite Confusing, aint it?", a little comment when I was describing my problem and he backfired it right on me when he could of simply stated he tested it. It was an aggressive statement.
But listen to this part good. Its not worth explaining because this problem is solved, if you reply to this your a troll. Why do you think Garther hasn't replied? Only reason I am is because you people keep setting off my pager. PROBLEM SOLVED, END OF STORY. |
It would be considerably easier if you just explained what you were trying to do.