How to send data from one actor to another on Begin Play, while not knowing which spawns first?

Ok, so you use the game instance to keep a list of signals in a map like this

It’s just a map from ‘name’ to ‘actor’.

The gauge now does this

and the tank

You can generalize it, so that a list of actors can wait for one signal, and you can send data also etc.

You can also create a sort of ‘buffer’ in the GI to avoid the ‘get actor’ stuff, but that’s more fiddly…

PS: Corrected it.

1 Like