# Setting References/Pointers Correctly in BPs (BEGINNER)

**URL:** <https://forums.unrealengine.com/t/setting-references-pointers-correctly-in-bps-beginner/1928206>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, question\
**Created:** [July 6, 2024, 5:31am UTC](https://forums.unrealengine.com/t/setting-references-pointers-correctly-in-bps-beginner/1928206 "2024-07-06T05:31:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeevex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zeevex](https://forums.unrealengine.com/u/Zeevex)\
**Post date:** [July 6, 2024, 5:31am UTC](https://forums.unrealengine.com/t/setting-references-pointers-correctly-in-bps-beginner/1928206/1 "2024-07-06T05:31:48Z")

</div>

Hello and thank you for any future advice!

I’m a beginner with unreal and networking, and i’m trying to get a basic top-down, arpg like camera/character going while replicating it across a client-hosted server.

Situation:  
After researching i found that by default the player-controller doesn’t replicate the way i wanted it to.  
the player controller would replicate client-\> server and client-\> client fine, however the host would not replicate properly as if the location of the character was not moving with the visual of the chracter.  
see here:

So I found the solution to cast the player controller from the GetController then store a reference to it and pass that through… which works as intended now… however… what i don’t quite understand is

**The issue:**  
Although the result is working as intended… i do receive this error, every tick that the \*PlayerController is ‘None’

Blueprint Runtime Error: “Accessed None trying to read property \*PlayerController”. Node: Set Control Rotation Graph: EventGraph Function: Execute Ubergraph BP Top Down Character Blueprint: BP\_TopDownCharacter

If i instead cast to PlayerController every tick, the error is resolved.

Can anyone help me understand what I am doing incorrectly here?

Kind regards,

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/3/d933bcb48bf46bb3a58f88d2c421db775f3d2563.jpeg)
