Hey Tom!
I have a (yet another!) question.
On the ChoosePlayerStart() function, we initially call IsSpawnpointAllowed() and then call IsSpawnpointPreferred().
Everything looks nice and tidy. Then I noticed… The very same check done in IsSpawnpointAllowed() is done on IsSpawnpointPreferred().
This check:
/* Check for extended playerstart class */
ASPlayerStart* MyPlayerStart = Cast<ASPlayerStart>(SpawnPoint);
if (MyPlayerStart)
{
return MyPlayerStart->GetIsPlayerOnly() && !Controller->PlayerState->bIsABot;
}
Is there a reason for this I didn’t notice, or is it just repeating the same code?
Can I just replace the code on IsSpawnpointPreferred() with a return true?
Thank you again!