Accessed None Trying to read Property CameraPawnRef

Hi everyone.
I begin to follow a tutorial for create a 3/4 camera but I have a problem, and I don’t know why. When I launch the game on UE4 and I try move the camera nothing happens, and when I stop the simulation he says “Accessed None Trying to read Property CameraPawnRef” from node SetActorTransform.

It’s the event graph which have a problem just on Transform node

Thank you for your solution

Is that the RTS tutorial from youtube? where do you set the “CameraPawnRef” variable? What is in “Reference casts”?

It means you never set what your Camera Pawn Ref is. Somewhere in begin play make sure you set what the CameraPawnRef actually is, because right now it is set to nothing, meaning it has no idea what to work with.

Also turn your ‘Movement Speed Calculation’ function to a pure function, or connect the white wire. Without either of these two steps, you will always get a 0 as your Axis Value.

I just saw that my first post work, when I try to post I was an error.
For this error, I find why I was that, that was an error on project setting. But I will try your solution cause for the moment nothing move.

And yes, it’s this tutorial.

ok, with the right setting on project, and with pure function that work thank you for your help

Hi, I’m having this same problem. How did you end up fixing it? What was the “right setting on project”?

EDIT - Got it fixed. I had to change the parent base class in myGameMode and myGameState.

I am having this problem as well. I’m pretty sure I followed the tutorial, and people keep talking about GameMode/GameState. I’ve switched those options in every combination possible, but nothing’s working. I just don’t understand what’s going on.

Edit: Never mind, I apparently had crossed some wires, and other wires had fallen out.

i have the same problem…anyone can help me?