obj
water
icon = 'test.dmi'
icon_state = "water"
New()
for(var/turf/a in view(2))
if(a.density == 0)
world << "lol"
new/obj/water(a.loc)
else
..()
Problem description:well this is probably me being dumb again but with this code i was thinking using
for(var/turf/a in view(1)
to find all the turfs near it and
if(a.density == 0)
to make sure the water dosnt go through anything solid
but it didnt work at all :/ so i made a click verb and when i clicked it it made all the water go to the bottom left corner
so can someone tell/show me what i did wrong?
Just use:
new/obj/water(a)
You don't add objects to a turf's loc, you add them to the turf.