Begin Play event in both Level bp and Pawn bp. It seems like pawn bp occurs first and then level bp. Its a problem for me because I need to pass reference of an actor in the scene to my NewPawn (DefaultPawn) Blueprint.
What I have done is I created a editable variable in NewPawn bp called “Look At Target” of type
StaticMeshActor and initializing this variable from my Level Blueprint in the Begin Play event and I need to perform some action in the Pawn bp Begin Play event too. since the event in pawn bp is triggering first I am getting a none reference which is causing errors.
I have add a Delay` node in Pawn bp so the level bp does its job and it comes here later and everything works perfect. I feel delay might not be efficient way of handling all kinds of scenarios but is there an alternate?