How to prevent actors from spawning in inaccessible areas?

That means I would have to assign AI to all the items in the game, right? Is that efficient?