Creating Global Array

Hello,

I am trying to create a multiplayer game. I am using the first person template. So far, I have the playing part working as in the game is working on remote machines.

My game is able to do the following:

  • The server hosts a session
  • The interface searches for the session and joins the available session
  • When the client joins, they are asked to enter their name so it can be displayed over the players head

The issue is: I am trying to create a “Global array” where all the names which the clients enter are stored but so far, it creates a new array every time a player joins instead of updating the existing array.

Right now, I am creating the array in the widget blueprint when the clients presses the OK button

I am very new to blueprints and gaming in general, so I would be grateful for any help.

Thanks in advance!!