If I set a for in view with the view being bigger than the callers view, what happens?
Ex: src.view is 10 but I use for(var/mob/M in view(15))
Will this look for M only in 10 tiles or 15?
Thanks.
In response to FKI
|
|
Well, you haven't actually answered any of my two questions. That was just an example.
|
It uses the size and object center that you specify when you call it. It doesn't care about the client's view size at all except to use it as the default.
|
In response to Ter13
|
|
But on the documentation default is said to be 5 on the view proc...
|
the src.view is seperate for the for, because it just shows how fat from the center you can see. However
client The clients view does not effect the for command in any way, and it just used to limit or expand their map screen in this case. |
In response to NSBR
|
|
NSBR wrote:
Well, you haven't actually answered any of my two questions. That was just an example. That's my bad; I initially misread. |
Was your example just that though? Or are you actually using view() for that purpose? Just curious.