I have added a swimming function on my character and it was working well with no problems, I then began working on smth else and suddenly everytime i run the simulation i get this,
Blueprint Runtime Error: “Accessed None trying to read property BP Third Person Character”. Node: Set IsSwimming? Graph: EventGraph Function: Execute Ubergraph ABP Manny Blueprint: ABP_Manny
I haven’t even touched any of the swimming blueprints which i find quite odd. are there any solutions to this?
Just click on the last word in the error, it will take you to the offending node. That node is accessing an uninitialized variable. You need to set the variable.
So, it means this variable
has no value.
So how do I give it a value?
See the post
It says 404 error page not found
I still don’t understand what it means tho
The answer is in the post
This is how to set your character reference in the anim BP.
Yes, but that’s very different from
The error you’re getting is saying you have not assigned this variable?
yea but I’m not sure how to assign it. Sorry for being a bit annoying, I am very new to ue5 XD
That other bit of code we were just talking about, that’s how you do it.
What Im still confused, sorry!
In your anim BP, you have this?
Do you also have this?
( or the version for your player ) In your version, it would set the ‘bp third person’ variable.
Right, you are not setting ‘bp third person character’.
You need to have a copy of this
but, change the cast to ‘bp third person character’, and the SET to your variable.
Ok, this is in addition to what you have now, not instead of.
At the moment, your variable ‘bp third person character’ is the right kind of variable, but you have not told the engine which player you’re talking about. I know that sounds nuts, coz there only is one player for you, but you could have a setup with 15 players, so… That’s why you have to set it