ID:172537
 
When i fish, i want u to have to be in oview(1) from the water and u click on the fishing pole in ur inventory to cast out ur line. How would i search for the water?
for(var/turf/water in oview(1))
rand() look it up
In response to N1ghtW1ng
That is nothing like what he asked for. He wants finding adjacent turfs, not generating random numbers. =P

Using locate() and oview() together is probably the best way.

<code>if (locate(/turf/water) in oview(1,src)) src << "You are standing next to water. DON'T FALL IN!"</code>
In response to Crispy
oh...i read it wrong...heh i thought he said how would i search in the water...instead it was how would i search for water
In response to Crispy
Crispy wrote:
That is nothing like what he asked for. He wants finding adjacent turfs, not generating random numbers. =P

ROFL *falls out of his seat, right after adding this forum chat too his clipboard*
In response to N1ghtW1ng
nope lol, thanks crispy