This allows you to set the stream level package name in spawners so that when the level is unloaded when using level streaming the AI that was spawned by the spawn will be destroyed so they dont fall though the level once its unloaded.

Go to the BP_SmartAIComponent and create a new variable called StreamLevelPackageName and set it to a name variable type and tick instance editable.

Then copy the image below, you will need to create SetupLevelStreamUnload and StreamLevelUnLoaded custom events.

Next go to the BP_AISpawningVolume and create a new variable called StreamLevelPackageName and set it to a name variable type and tick instance editable.

Add the highlighted nodes shown in the image below, location at the top of the image.

Next go to the BP_AISpawnPoint and create a new variable called StreamLevelPackageName and set it to a name variable type and tick instance editable.

Add the highlighted nodes shown in the image below, location at the top of the image.

You can now select spawners in your level and set the Stream Level Package Name so that AI spawned by the spawner will be destroyed when the level is unloaded. Remember this must be the package name, not the level name, there is an example of this below. You can also set the StreamLevelPackageName the Smart AI Component for AI you manually place in the level to destroy when the give level is unloaded.

/Game/SmartAI/TestMaps/Stream3