Accessed None after Is Valid

Can someone explain why I am getting this error? I don’t understand why I am getting the accessed none error after checking if it is valid. If it isnt valid, shouldn’t it just return false to the Branch and continue as normal? Why is the Branch getting the Accessed None anyways? This one has me quite confused.

im not sure. it seems the error is with the function before that branch.

that “is valid” seems a bit confusing to me. it says “target is navigation path” and it should be uobject or something. maybe the return type is different.

That “Is Valid” checks to make sure the navigation path is valid from the “Find Path To Actor”. Thinking about it like that. I’m wondering if it doesn’t perform the normal is valid task and instead only checks to see if the path is a good path, rather than also checking to make sure the path object exists. Seems that if the nav path didn’t exist, the Accessed None would be pointing to that node though.

I’m not able to check it now, but I’ll see if it will let me put a normal “Is Valid” between the find path and the nav is valid. Seems a bit odd that I would have to do two different is valid checks in succession, but I’ll try it anyways.

Just for reference, the current is valid check fixed a problem with the NPC pathing where they wouldn’t be able to successfully complete a MoveTo. They would kind of get stuck (because of an invalid path?). So, This version of is valid is needed in this case.

1 Like

Adding the regular “? Is Valid” before the nav Is Valid branch fixed the issue. It appears the nav path Is Valid does not check to see if the object exists. I’m still a little confused as to why the branch got the error, but at least its working now without any errors.

yups that’s pretty much what i tried to tell you. the nav path is a different node and doesn’t check for the validity of the object, but rather the path.

what do you mean by that?

pure nodes are evaluated by the time a node with an execution line (white) is evaluated.

i’m glad it’s fixed now :slight_smile:

if my answer helped you consider marking as solution.