Loop at BeginPlay when I load a map

Hi guys !

I’m having an issue using Event BeginPlay. I’m trying to connect to a dedicated server 10.xx.xx.xx right when the game starts by executing the open console command. But when I launch the server, everytime the command is executed, BeginPaly starts again and i’m looping.

How can I managed to connect to my dedicated server only once when i’m starting my game ?

Thank you !

run two seperate maps. the startup map contains the code for the openLevel command and the server runs the original map

Thanks a lot ! Make a startup map didn’t come to my mind

No Problem :wink: you could also Work with commandline Flags and react in that in your BP. If it works for you, please Mark the answer as correct so the question is marked AS solved