ID:156917
 
Okay, say for instance, when I double click on another mob, I want it to print that mobs username?

Say, for instance, my name is Frank, and there is another mob called Bob. When I double click on Bob, I want it to bring back the message "Frank prods Bob"

I hope that's clear enough. I'm so new to programming that it's not even funny.

my code thus far is this:

mob
DblClick()
world << "[usr] prods ???"


Where the ??? would be the other user. But I don't know what to put there. I've looked through the reference but I can't seem to find what i'm looking for.

Hrmm. After messing around, would this work?

mob
DblClick()
if(src.client)
world << "[usr] prods [src]!"


This is difficult because I don't have another player handy to test it with.
src
In response to AmandaDD
He already answered his own question. XD

Anyways, what you can do is use the Map editor to place a mob on the map, and right-click it then set its' name to something! Then, test away!
In response to CapcomX
Uhh...

mob
DblClick(mob/M)
if(M.client)
world << "[usr] prods [M]!"


I don't know where people got src from. It is safe to use usr in client proc's.
In response to Vector2
This is mob/DblClick(), not client/DblClick(). If it were client/DblClick() you'd also need to be checking the type of M in order to not get errors.
In response to Garthor
Oh, right. My bad.
I was just in a little too much of a hurry when I wrote it haha.

Thanks.