ID:161929
Mar 13 2008, 4:35 pm
|
|
How do i use the oview() proc to find a mob that's right next to a object
|
In response to Obs
|
|
Well why doesn't
var/mob/M in oview(1) Work? |
In response to HisZd
|
|
Cause its jsut defining a mob thats the oview(1), its not actually calling to them. for(var/mob/M in oview(1)), actually does this to every mob within 1 tile. You may want to try get_step() though.
|
In response to HisZd
|
|
Because that evaluates to "null in oview(1)", which will always be FALSE, and so is a thoroughly meaningless statement.
If you want to locate something, then you need to use locate(): var/mob/M = locate() in oview(1,src) |
for(var/mob in oview(1))