/Engine/Source/Runtime/AIModule/Classes/Blueprint/AIBlueprintHelperLibrary.h
Spawns AI agent of a given class. The PawnClass needs to have AIController set for the function to spawn a controller as well.
static [APawn](API\Runtime\Engine\GameFramework\APawn) * SpawnAIFromClass ( [UObject](API\Runtime\CoreUObject\UObject\UObject) * WorldContextObject, [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< [APawn](API\Runtime\Engine\GameFramework\APawn) > PawnClass, [UBehaviorTree](API\Runtime\AIModule\BehaviorTree\UBehaviorTree) * BehaviorTree, FVector Location, FRotator Rotation, bool bNoCollisionFail, [AActor](API\Runtime\Engine\GameFramework\AActor) * Owner )