Why controlled pawn reference is invalid when pawn is spawned from the game mode?

I have an invalid controlled pawn when it is spawned by game mode. But if it is placed in the world then the pawn is valid.


It is spawned by the game mode like this.

And my pawn configuration is this:

Is there something wrong? or missing? or other way to get the pawn reference?

NOTE: the behavior tree does work fine in both cases.

Thank you so much!!

Hi there,
Perhaps you need to allow some time to the controller to completely possess the AI pawn.
Add a small delay on begin play or use “event possess” instead of begin play.


That’s perfect!!
Thank you so much for your help!!

1 Like

Glad it helped.