So I recently looked at the Documentation about how to create an Aim Offset and put it into my game. I copied the tutorial exactly, but I am getting a bunch of errors about my variables which confuses me. And its not just one, its like every second, there are about 1000 errors repeating. Here is a picture of my recently change blueprint in my Animation blueprint:
You are accessing a pointer that is null. Before i go ahead and write down why this is happening, i recommend you to simply watch my
tutorial for that:
So I watched your video and understand that it is pointing to nothing. Do I just need to state what my variables are? Or is there a better way in fixing it?
The errors are missleading. Should have added that to the Tutorial. Ignore the “Set Player Aim Pitch/Yaw” part. The “K2Node_DynamicCast_AsThird_Person_Character” is the
important one.
And this is not on your screen directly. Where does the blue line come from that you use for the “Object” input of the cast node?
You can always check (like i said in the video) if a pointer is valid or not using the “IsValid” node. Before using the Pointer that is not visible
in your upper screenshot, plug an “IsValid” node between it and only continue if it is valid. Then the error should disappear.
Also get used to plug an “IsValid” node behind EVERY pointer before using it.