/Engine/Source/Editor/UnrealEd/Public/LevelEditorViewport.h
Static: Attempts to place the specified object in the level, returning one or more newly-created actors if successful. IMPORTANT: The placed actor's location must be first set using GEditor->ClickLocation and GEditor->ClickPlane.
true if the object was successfully used to place an actor; false otherwise
static [TArray](API\Runtime\Core\Containers\TArray)< [AActor](API\Runtime\Engine\GameFramework\AActor) * > TryPlacingActorFromObject ( [ULevel](API\Runtime\Engine\Engine\ULevel) * InLevel, [UObject](API\Runtime\CoreUObject\UObject\UObject) * ObjToUse, bool bSelectActors, EObjectFlags ObjectFlags, [UActorFactory](API\Editor\UnrealEd\ActorFactories\UActorFactory) * FactoryToUse, const [FName](API\Runtime\Core\UObject\FName) Name, const [FViewportCursorLocation](API\Editor\UnrealEd\FViewportCursorLocation) * Cursor )