ID:170861
 
Hey, how would I go about checking a variable to see if it is equal to an object? Would I have to use..
(not caring about indentation)
proc/Random_Object_Spawn
var/RandX = rand(1,250)
var/RandY = rand(1,250)
for(var/obj/Item)
if(Item == typesof(/obj/Comm_Link)) // Would this Work?
Item.loc = locate(RandX,RandY,1)
return
Look up the istype() proc. I think that is what you are looking for.
In response to Jmurph
Woot, Thanks, I think I have this down now.