I’m getting this error when playing the game. It runs this function just fine still but spams the error even when the function isn’t running.
Any ideas? Thanks!
I’m getting this error when playing the game. It runs this function just fine still but spams the error even when the function isn’t running.
Any ideas? Thanks!
When, and from where, is the “Check if Too Far or Close” function called?
I assume you are doing this from the player controller? Have you hooked up the cast fail to an output to see if it due to that?
Personally I would use an interface to get the data you require as I have fought similar error messages when using casts that I haven’t fully been able to solve, it may be a little more work to setup but I have found it reduces weird problems like this.
Its not a bug, i have the same error while trying to comunicate between blueprints and figured out that they are not “seeing” eachother, take a look at this posts:
- YouTubeI have hooked up a print to the cast fail and it seems to never fail. It actually works perfect every time, getting the correct numbers from the pawn. So it seems to be seeing each other fine,
This is the controller that is getting the “max move distance” from the pawn selected at the time. I generally use this function when the player clicks the ground to move.
I haven’t used interfaces yet, I will look into that. Thanks.