- Home /
Storing instances of a script in a list.
Hi,
How would I go about storing instances of a script inside a list?
What I want is to be able to store persistent client (player information) on the host game even when that client isn't connected, for example a player will gain and loose points even when there not connected to the server, the game will always be running on the server and clients will operate as a drop in drop out viewer for that players stats.
What I'm trying to do is store instances of a PlayerInfo script which has variables for display name, access code, playerID etc. The clients will store the playerID in a save file locally on there device so that next time they run the game it will connect up to that players information on the sever.
Whats the best way to create new instances of a script and store that in a list?