# PlayerState is null on clients

**URL:** <https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013>\
**Category:** Multiplayer & Networking\
**Tags:** playerstate, Replication, unreal-engine, Multiplayer, Blueprint, question\
**Created:** [April 6, 2015, 9:53am UTC](https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013 "2015-04-06T09:53:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewFord](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrewford/32/755855_2.png) [@AndrewFord](https://forums.unrealengine.com/u/AndrewFord)\
**Post date:** [April 6, 2015, 9:53am UTC](https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013/1 "2015-04-06T09:53:19Z")

</div>

HI!

i have some issue with PlayerState object replication in multiplayer.  
For example, i’ve created ThirdPersonExample and in level blueprint i put this nodes to test:

 ![37559-screenshot_20150406124247.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/d/a9d72944f4f6762656627471422c4d80ead2162e.png)

I hit play in editor with 2 clients and dedicated server checked.  
log shows me this:

Client 1: Null

Client 1: Valid

Client 1: Valid

Client 2: Null

Client 2: Valid

Client 2: Null

etc.

So, is that normal? I think after PlayerState replicates from server to clients, it shouldn’t be null?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 6, 2015, 5:57pm UTC](https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013/2 "2015-04-06T17:57:45Z")

</div>

Hello AndrewFord,

I was unable to reproduce this issue on a dedicated server. However, I used pawn inside of my get all actors of class. This appears to have worked for me. If you change yours to use pawn do you still get the same result? If so, I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. What version of the engine are you using?
2. Can you reproduce this issue in a clean project?
3. If so, could you provide a detailed list of steps to reproduce this issue on our end?

---

<div class="post-metadata">

**Author:** ![AndrewFord](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrewford/32/755855_2.png) [@AndrewFord](https://forums.unrealengine.com/u/AndrewFord)\
**Post date:** [April 6, 2015, 8:48pm UTC](https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013/3 "2015-04-06T20:48:59Z")

</div>

1. i’m using 4.7.4, downloaded through launcher
2. i was doing my test on a clean project (ThirdPersonExample, Blueprint version)
3. Sure

i’ve just created a clean project. Then, i opened level blueprint

 ![37664-screenshot_20150406233633.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/c/c6c803267972f293e96e59279a3cc7527cc4e362.png)

![37665-screenshot_20150406233731.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/a/46af8b6f2eaaea5d07f9628d458ab525ffa99840.png)

 ![37666-screenshot_20150406233825.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/b/d7be4cba87827017e82f3149c0c03284200a5d9f.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 8, 2015, 8:58pm UTC](https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013/4 "2015-04-08T20:58:55Z")

</div>

Hello AndrewFord,

Thank you for providing the information, however after following the steps provided I have still not been able to reproduce this issue on our end. I do have another question for you. Can you replace your “foreachloop” node with a new one? The data will sometimes not update.

---

<div class="post-metadata">

**Author:** ![AndrewFord](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrewford/32/755855_2.png) [@AndrewFord](https://forums.unrealengine.com/u/AndrewFord)\
**Post date:** [April 11, 2015, 11:57am UTC](https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013/5 "2015-04-11T11:57:41Z")

</div>

I captured the video of this issue.  
[YouTube](http://youtu.be/K4BHhuNGOdE)  
Doubt it should work like this…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 13, 2015, 3:46pm UTC](https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013/6 "2015-04-13T15:46:10Z")

</div>

Hello AndrewFord,

After watching the video I noticed that the default character for the third person template was still in your level. I know this because you have 3 characters in your level (but only two players). This means when you play this project as a dedicated server there are no players left to possess this character. If you delete the default character out of your level this should solve your issue. I hope that this information helps.

Make it a great day

---

<div class="post-metadata">

**Author:** ![AndrewFord](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrewford/32/755855_2.png) [@AndrewFord](https://forums.unrealengine.com/u/AndrewFord)\
**Post date:** [April 13, 2015, 6:09pm UTC](https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013/7 "2015-04-13T18:09:50Z")

</div>

Hi, Rudy!

Yeah, removing the character helps. Thanks for the answer!

---

<div class="post-metadata">

**Author:** ![Sanjay\_varma11](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sanjay_varma11/32/88711_2.png) [@Sanjay\_varma11](https://forums.unrealengine.com/u/Sanjay_varma11)\
**Post date:** [October 4, 2021, 2:36am UTC](https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013/8 "2021-10-04T02:36:03Z")

</div>

Hello.If you are getting player state on event begin then please add a delay of 1-2 seconds before accessing player state.Unreal needs some time to add player states to each player .

---

<div class="post-metadata">

**Author:** ![Riztazz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Riztazz](https://forums.unrealengine.com/u/Riztazz)\
**Post date:** [February 6, 2024, 7:04am UTC](https://forums.unrealengine.com/t/playerstate-is-null-on-clients/314013/9 "2024-02-06T07:04:45Z")

</div>

PlayerState is replicated via OnRep\_PlayerState function, don’t have to guess with timers
