How can I Create a PlayerStart from code?
I've deleted the
Here is what I've done actually (in a custom
The code is compiling, but when I'm starting the game, it's not using my
So, how can I use mine ?
try more of a full spawn code like this
I encountered this same issue in unreal engine 4.9, but Rama's solution didn't make any difference for me.
I used the approach described here. Specifically, overriding one of AGameMode::FindPlayerStart_Implementation or AGameMode::ChoosePlayerStart_Implementation to use your APlayerStart.
In my case, I simply overid ChoosePlayerStart_Implementation() and had it return the member variable of my AGameMode-class that points to my APlayerStart instance, which is spawned as Rama describes. Making the function more robust may be advisable, but this at least appears to work.
Follow this question
Once you sign in you will be able to subscribe for any updates here