Hi. Today I was making a small change in a blueprint that has been in my project for about 8 months. I’m familiar with the “accessed none trying to read property” error message and it generally indicates that I overlooked a minor detail while I was setting up a blueprint. However, I’m confident that this set up hasn’t produced this error before and I really can’t think of what the problem would be. We actually use timelines like this pretty frequently throughout our game and have always found “get player character” to be safe and reliable. Thanks in advance for reading and any tips!
Try adding an is valid check for get player character this can plugin to a decision branch between the update nad set actor rotation.
It would only process the rotation if the player character is ready and working.
The error might be due to the player character being destroyed at some point and while it’s not re-spawned it might trigger an error.
Hey thanks. I’m going to plug that up for now but the odd thing is that the player character is as valid as ever when the error is coming up. As in during normal play. That’s why it strikes me as so odd. We don’t have any validated gets on player character 0 because the game mode never changes and play begins and ends with that actor. The timeline doesn’t go off until the player begins interacting with the other actor.
You could try “Get Player Controller” => “Get Controlled Pawn”.
Both of your suggestions resolve the error. I’ll have to keep an eye out and check some other blueprints to see if this continues coming up. Thanks!
Interesting that the validated get resolves the error message AND continues to update Set Actor Rotation off of the valid pin, isn’t it? I put a print string on “is not valid” and get nothing.
Now i took it all off and put it back the way it was originally, and I can’t reproduce the error any more. I’ll go ahead close this thread. My vague suspicion is that this is somehow related to a series of problems we’ve had when merging content in from test branches. Since that seems to cause all of our problems haha! Thanks for your help.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.