Player state not accessible at other clients

ishtmeet_singh
Tue, 25 May 2021 12:08:50 +0000
Multiplayer & Networking

I am trying to access some other player’s player state locally but it is getting null.

Actually I have a bullet and when it hits a player I am trying to access it’s player state within the bullet class by : PlayerHit->GetPlayerState(), which returns null.

Also when I print the length of GameState->PlayerArray, it returns 1.

I have read and I know that player states are present and accessible on all clients, then why is this happening???

1 post - 1 participant