Adding a self reference to an array in construction script.

I have a blueprint, that when it is created, adds a reference to itself to an array. The problem is that when I am trying to get that reference after setting it, it is returning as though it is not set. Here is a screenshot of the relevant nodes:

First of all try storing the calculated ID in a local variable and use that instead of dragging the pin every time. I’m not an expert here, but I bet the value gets calculated every time you do that.

–mieszko

In the actual code it only gets used once, the nodes to the right were just hastily put together in order to try and figure out what is going wrong (I calculate the appropriate ID based off some functions to calculate appropriate moves in the controller BP, so it doesn’t need to get stored in actuality). That actually was something I was wondering about however so thanks for the tidbit anyways.

As an update I redid the board creation flow from scratch, having an extra Blueprint solely responsible for creating the board, storing handle information and taking care of interaction. It seems to be working appropriately this way, with the the handles being stored in an array successfully. I’m still not too sure where the problem was though, as the code is almost identical, just moved around.