After clearing the array using the “Clear” or “Make array” function, when I call “Lenght” in another Actor, I get the length of the array before it was cleared. Although it is currently empty.
The array itself is stored in the Game instance
After clearing the array using the “Clear” or “Make array” function, when I call “Lenght” in another Actor, I get the length of the array before it was cleared. Although it is currently empty.
The array itself is stored in the Game instance
I would suggest using print strings at each of the appropriate points. Essentially, if the array reports that it’s full, it is. Check that your casts aren’t failing, that you don’t have multiple independent variables by the same name across multiple BPs, or (for multiplayer) whether you’re affecting the client or server.
If your print strings report different, simultaneous values, then you know you have multiple instances of something–the variable and/or the game instance. The array might also need to be instance editable.
Just throwing out ideas.
I have one game instace. And I don’t have a multiplayer game.