Why does my blueprint return zero for world location, and still 0 even when adding another vector to it?

230878-ue4bug.png

As you can see in the screenshot, I don’t understand how those values can make sense

  • GetWorldLocation is 0,0,0, even though my character is absolutely not at the 0 position
  • Velocity does have a value
  • vector + vector operation on those two values should return the value of the velocity, assuming GetWorldLocation is 0 (which it shouldn’t). Yet, its output value is 0,0,0

It seems to me that GetWorldLocation is returning a wrong value, and vector add is completely not doing what it should be. What could be the reason for that?

Note that I tried to get the world location from the actor too, and got the same 0,0,0 result.

are those values while playing the game? i would try a print string to make sure that the values are accurate.

The values being watched weren’t actually connected to any execution node (I forgot a blueprint link) and those strange results seem to appear in this situation. I assume the Vector add node was showing 0 as a result simply because it wasn’t executed at all.

I would have expected it to show “Out of scope” or something when the nodes aren’t connected, but turns out it doesn’t.

It was while playing the game, turns out that my nodes just weren’t connected and the debugger shows weird results in that case