I am developing a JWebsocket plugin that I intend to use for a multiplayer game.
The plugin receives a list of users who are online.
My aim is to take this list of users and put these users into a "constructs 2 list".
Now i dont know how to set the elements of the list from within my plugin.
here's what I want to do:
Acts.prototype.PopulateUserList = function ()
this.userarray = ;
console.log("Got user list into constructs runtime")
this.userList = this.websocketClient.fetchUserList();
for (var i=0;i<this.userList.length;i++)
// Now I want to access the list which i have created
// and populate it with userarray
// Basically something like this.runtime.list ?
Any suggestions or help is highly appreciated.