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,