Making array readable for randomly spawned actors

Hi guys :slight_smile:

I’m barely touching “that” part of coding in blueprints, so im a bit stuck :frowning:

My task:

  1. Creating some actor, lets say ArrayActor where i will have some math calculations and adding some values to array X.
  2. Access to that array X from a bunch of multiple and randomly spawned and destroyed actors, let say ArrayReader

What is a the best solution to that?

Game mode should be spawning/destroying actors, so I’d put the code there and replicate data to players as needed through game state. But this depends on the proposed functionality.

I came to that solution:

Not sure how good/bad that is but it works.