omg It's taken me this long to realize that defining a type in for(), for instance, for(var/obj/building/B as obj) doesn't actually filter anything out!
it was fooling me because of this -
for(var/obj/Building/B as obj in world)
if(B.building==1) return
obj/Building/var/building
only a building predefined var can be accessed unless you put a predefine type in for()....
but it doens't filter the darn things out :) goes through every obj, so what I was doing was editing variables of objs that didn't have those variables...
ID:268745
Nov 4 2004, 8:58 pm (Edited on Nov 5 2004, 8:22 am)
|
|
Nov 5 2004, 5:02 am
|
|
The reference also says that without any filters provided, the declared type will act as the filter. You only need to to do for(var/obj/building/B)...
|
In response to tenkuu
|
|
ahhhh lmao... alright thanks for that :)
|