I tried to make a widget that shows the distance between two objects and it works just fine but every time I stop testing it gives me this error:
I just want to know what is this and why is it giving it to me. Thanks in advance.
I tried to make a widget that shows the distance between two objects and it works just fine but every time I stop testing it gives me this error:
@DeiankataTV
It could be that you’re trying to access something outside your scope, or that the object you’re trying to access hasn’t been created yet.
I think the isValid node might help you out a bunch, but it could also be a scope issue.
I hope this helps!
-Zen
I solved the problem but I didn’t understand why that was a problem. I was casting to third person character with the get player character node in the object and get actor location so I tried just plugging the get player character node in the get actor location it didn’t show an error.
@DeiankataTV
Awesome, and thanks for posting your solution! It could be something that was happening to it during the cast, but I’m glad all is well now!
Post again if you have more problems, Happy Developing! ![]()
-Zen