view is to oview as world is to ???
Is there a list like oview for world? Where its everyone excluding the center?
Sep 12 2014, 7:34 pm
Best response
|
|
Well, there's world.contents - center. Of course, it's generally a bad idea to loop through the world for anything when you could just use your own smaller, managed lists.
|
Teleport(mob/M in world) I was just trying to make it so that the person themselves don't show up in the teleport list. I used world instead of players cuz an admin may want to teleport to an npc. |
In response to Gluscap
|
|
Did you try my actual solution to this problem?
|
Ah, src works but center doesn't. I keep forgetting to make it world.contents when I'm subtracting things from the world list.
|
In response to Gluscap
|
|
You asked for how to exclude the "center"... It won't always be src in different situations.
|
Yeah, which is why I wanted center. Teleport(mob/M in world.contents - center) doesn't work, which is what I ideally want. Don't want people already teleporting to where they already are.
|