(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
ID:170861
Dec 5 2004, 11:46 am
|
|
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 |
Dec 5 2004, 12:26 pm
|
|
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.
|