ID:157812
 
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!
Your request makes no sense. You say "defining them as a global mob/variable/anything" but that really does not mean anything.

It would be considerably easier if you just explained what you were trying to do.
In response to Garthor
"Basically I just need to be able to delete another client by defining them"

//Example

var
player1
player2

mob
Define_Me()
if(player1)
player2 = usr
else
player1 = usr
kill()
player2.Del()

//Remember, this is an example, please don't try to edit this >.<


Now in that example "player2.Del()" wouldn't work...so I need some way of doing something like that.
In response to Railon
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()"
In response to Kuraudo
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?
In response to Railon
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.
In response to Garthor
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
In response to Railon
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.
In response to Garthor
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.
In response to Railon
Beep beep.

I don't see how Garthor's post was offensive at all. Maybe you should first evaluate yourself before you evaluate others.
In response to Mega fart cannon
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.