Specifically, when I assign the Pawn to the SpawnParams on a “gun” object which then spawns projectiles, Instigator is null on the created projectile. I’m using a slightly modified version of the First Person Shooter template.
Relevant code lines:
FActorSpawnParameters ActorSpawnParams;
auto Stepone = Recaster->GetAttachParentActor(); // this succesfully returns the PlayerCharacter ACharacter
auto MyParentPawn = Cast(Stepone); // this gets the Pawn from the above for passing to the SpawnParam
ActorSpawnParams.Instigator = MyParentPawn;
World->SpawnActor(ProjectileClass, SpawnLocation, SpawnRotation, ActorSpawnParams);
Any help would be appreciated. Thank you!