ID:148597
 
Here is my code and thanks in advance:

if(/obj/mining/copper in usr)
it's simple...you're not defining it properly. Here's a simple one for ya ^_^

for(var/obj/mining/copper/O in usr)

~Goku72~
Koolguy900095 wrote:
Here is my code and thanks in advance:

if(/obj/mining/copper in usr)

This will do the trick:

if(locate(/obj/mining/copper) in usr)


If you need to keep a reference to the found object, you'll need to do something like this:

var/obj/mining/copper/C = locate() in usr
if(C)
usr << "You have [C]!"