Once gas comes within a distance about a million times...
Once gas comes within a distance about a million times larger than the event horizon of the black hole, it becomes gravitationally captured. At this point the gas becomes fuel for the black hole engine.