var/list/ou = new/list()
client
New()
ou += src
Del()
ou -= src
mob/verb/select_mob()
var/mob/m = input("who?") as client|null in ou
if(m)
m << "blah"
//other procs
As you can see, the ou list is a list of clients. But when using the select_mobs verb, it displays the client key's instead of displaying the client's mob. As there a way to do this or I would have to make a seperate temp list like below.
mob/verb/select_mob()
var/list/mobs = new/list()
for(var/client/c in ou)
mobs += c:mob
var/mob/m = input("who?") as mob|null in mobs
if(m)
m << "blah"
//other procs
In your second block of code, you should know that the colon operator is some serious bad juju. Instead of c:mob you should be using c.mob, which is perfectly fine since c was defined as var/client/c and DM knows it has the mob var.
Lummox JR