if(src.type == typeof(/obj/objectONE))
DO THIS
else
DO THAT
So what I want it to do is: DO THIS when obj/objectONE/CUBE or obj/objectOne/Pyriamid is being tested as the src but not when something like: /obj/objectTwo is the src, I want that one to do: DO THAT.
I tried the typeof command but it keeps coming up with errors and nothing else seems to work. Thoughts?