How to get other player's PlayerState in C++?

The documentation states that PlayerStates are available for all clients (all clients know each other’s PlayerState). So how do I get a list of all PlayerStates in the world (C++), as a client?

Also, are all variables in the PlayerState automatically replicated, or do you have to mark them as UPROPERTY(Replicated) and add it to the GetReplicationLifetime() function?

GameState has a PlayerArray with the replicated player states, so GetWorld->GetGameState()->PlayerArray. You can then cast it to your subclass if needed,

You have to mark it replicated and add it to GetReplicatedLifetime to make it replicate. They work the same as any other actor, except they’re always replicated no matter how far away you are,