This is nothing to do with the script because it obviously works and it's a cool thing to be able to do, but if someone limited my vision range to one tile like in the video then I wouldn't play that game because that's awful design.
Obviously people don't normally do that unless they give you a way for it to be more than one tile, but just sayin'