i have a strange Problem adding objects to an array of another blueprint.
First of all i have the following scenario.
there are Activators which can be triggered and Activatables which can be activated.
A Activatable can be activated by one to “unlimited” Activators. Therefore the Activatable got a list ob all Activators.
At the start of the game the Activatable registers themself at the Activators in order to be able to be accessed by them.
At first i used a single variable to save the owning Activatable and everything was fine.
After that i decided that one Activator can be part of several Activatables. therefore i tried to save the owning Activatables in an Array.
AND HERE COMES THE PROBLEM:
here is the “code” from the registering. The input array is the ListenToActivators with a list of Activators.
The Activatables seem to register themselves in the variable and in the array as well. (both ways)
I can also see that the length of the Activatables array is the right one.
If I now try to work with the data, the reference from the Activatable variable is valid and works.
the references from the array on the other side are not valid and therefore useless…
Does anyone know what i am doing wrong or how to fix this problem?