Error on a BP after ending a test

Hello,
I tried to create an asymmetric game and I find a way to connect a first person on a player start and another third person player in the second player start.

That actually work but I received an error when I end the test :
Blueprint Runtime Error: “Accessed None trying to read property CallFunc_Array_Get_Item”. Node: SpawnActor Graph: EventGraph Function: Execute Ubergraph BP GM Local Multiplayer Blueprint: BP_GM_LocalMultiplayer

There is my BP of my game mode

Can someone know where the error come from and why ?
Thanks in advance

You are gathering the player starts during begin play that runs after on post login.
The array is empty during the post login phase

Try this:

You should also do an is valid index check on the array element to see you have actually found a suitable candidate for a spawn start point.

Full spawn test

If there are not enough start points it will use the last valid one.

Code version:

code.txt (77.3 KB)

You can import the blueprints by copying the code in the file and pasting it into the blueprint via ctrl + v

1 Like

I really appreciate your help ! That’s work perfectly and everything run smoothly !
Thank you so much @3dRaven

1 Like