So, instead of gettting the Character, I’d like to just straight spawn from a blueprint.
From the Editor copying the reference to clipboard yields: Blueprint’/Game/MyLaserAttractor.MyLaserAttractor’
I’d like to use that string to spawn from in the PlayerController so I don’t have to mess with the character. I set the mesh in the Character to None because I’m not using it as a pawn.
if(MyCharacter != NULL && MyCharacter->LaserAttractorBlueprint != NULL)
{ //Spawninfo
FActorSpawnParameters SpawnInfo;
SpawnInfo.Owner = this;
//spawn
LaserAttractor = GetWorld()->SpawnActor(MyCharacter->LaserAttractorBlueprint, MyCharacter->GetActorLocation(), MyCharacter->GetActorRotation(),SpawnInfo );
UE_LOG(LogCatSniper, Log, TEXT("LaserAttractor spawned"));
}