Bad location of other objects given in Construction Script

I have a map of hexes of the same blueprint class, which either:

  • are of a specified type
  • or calculate the type automatically, depending on their neighbours.

To find neighbours, I’m getting the location of all hexes on a level and check if the distance between current hex and the other is smaller than 3300 units.
If I do it by a straight reference, I’m given bad locations - though it happens only in Simulate/Play. In editor, everything is OK. It doesn’t matter if the blueprint uses Get Distance or subtraction of vectors.

The workaround, which solves the problem, is to store the location of self in a variable. Then all the hexes query that variable, instead of using Get Distance or retrieving the location directly.

Here’s a thread on UE4 :


Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes.
If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, please submit a new report for it.

Thank you.