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, 11:30 am
|
|
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, 11:35 am
|
|
What are you trying to get it to do?
|
In response to Pakbaum
|
|
Well, check all the atoms in a space directly before a player.
-Thorg |
In response to Thorg
|
|
Before? Get_Step I believe does it infront of the player.
|
In response to Hell Ramen
|
|
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 |
In response to 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. |
In response to Loduwijk
|
|
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 :( |
In response to Thorg
|
|
Nevermind got it, thanks all who helped!
-Thorg |