if(M.type == /mob/townsperson)
That includes everything inside "townsperson", like /mob/townsperson/bob and /mob/townsperson/george, right? I forget all the easy things =P
ID:169256
Jul 14 2005, 6:45 pm
|
|
if(M.type == /mob/townsperson)
That includes everything inside "townsperson", like /mob/townsperson/bob and /mob/townsperson/george, right? I forget all the easy things =P |
Jul 14 2005, 6:47 pm
|
|
Try if(istype(M, /mob/townsperson)). istype() includes the type you give it as well as any subtypes.
|
In response to Jon88
|
|
That's right
that really was quick =P |