ID:166124
 
Or something like that o_O

How can I make it so that an NPC can see everything in a room it's standing in?

By "room", I mean all of the walls are opaque. I want NPCs to be able to attack players before the players get them in their view =)

I was going to just edit their view to 100 but it can only go up to 10 :(
Instead of using view(), use range(). range() ignores sight-blocking influences, like opacity and luminosity.

~~> Unknown Person
In response to Unknown Person
Alternatively, you could turn on the SEE_OBJS, SEE_TURFS, and SEE_MOBS bits in their sight variable - but that doesn't affect the view() proc, it's purely visual, for some reason. This annoys me. <_<
Hey I don't think I looked back at this after posting it o_o
I do that too often :(

I don't think Unknown knew what I meant: Opacity is my friend :( I wanted them to be able to see anything in an unlimited range unless blocked.

I currently just have their view set to 10 when players are 5 or 6 (one of those), but if I make a really really really big room the NPCs won't be able to see the player from the other side. I just need a way to simulate a view of 100 or if it's possible, so that they'll be able to see anything in the room unless it's behind an opaque thing.
In response to Cowdude
I think you'll have to make your own line of sight function. They're not too difficult to do, and they have been discussed at least a few times. I even gave some code snippets from one of my personal libraries to make it easier in one of them. Try a search for it or something similar.