ID:145267
 
Code:
mob
Click(mob/M)
if(M.client)
usr << "Name: [M.name]"
usr << "CName: [M.cname]"
usr << "Key: [M.key]"
else
..()

mob
Click()
for(var/mob/M in view())
if(M.client)
usr << "Name: [M.name]"
usr << "CName: [M.cname]"
usr << "Key: [M.key]"
else
..() //this one works, but just shows everyone's name in view lol.
//Kinda obvious i know.


Problem description:
Well, i don't really know were to begin, i just was doing trial and error for a while and gave up. I Also tried it a few different ways as you can see..

EDIT:There are no errors in the maker, just incase you wanted to know what the errors were. It just doesnt work when i click somebody.

This is how you'd do that.
mob
Click()
if(src.client)
usr << "Name: [src.name]"
usr << "CName: [src.cname]"
usr << "Key: [src.key]"


When clicking, what you're clicking is the src, and you're the usr.
In response to Detnom
Thanks man, i probobly would have never noticed that. :)
atom/Click has no default action, so using ..() within atom/Click does nothing.
In response to Loduwijk
Oh, okay.