for(var/atom/M in get_step(src,src.dir))
world << "[M]"
In a verb, it returns nothing.
thanks in advance.
-Thorg
ID:170797
![]() Dec 14 2004, 12:30 pm
|
|
What's wrong with this?:
for(var/atom/M in get_step(src,src.dir)) In a verb, it returns nothing. thanks in advance. -Thorg |
![]() Dec 14 2004, 12:35 pm
|
|
What are you trying to get it to do?
|
Before, infront, same difference, it should still return values of M to the world, that was what was confusing me.
Apologies for woolly wording. -Thorg |
Thorg wrote:
Before, infront, same difference, it should still return values of M to the world, that was what was confusing me. [link] About your problem though, get_step returns a turf and a turf will have only atom/movable in it. The code should output for you any objects of type /mob or /obj that are standing directly in front of you, nothing else. |
How would I get it to just store a turf found with get_step in a variable, say: var/turf/G ?
Thanks in advance. -Thorg P.s: I stand before you and apologise for saying "Same Difference" I stand in front of you and apologise for saying "Same Difference." I'm wrong, oh so wrong :( |