Hey, I’m trying to implement a ‘ready button’ in my multiplayer game. I’ve created an array on event graph inside widget blueprint and stored all ‘ready images’ in an array. When I use ‘print string’ on the array, it shows perfectly that has 4 itens as it should. Then I created a function to store and use the values. When I use the print string on the index, also, it shows exactly the number as it should. But when I get my array from index, it shows ‘none’ or simple ‘-1’. Is not getting anything from the array and I can’t figure out why. Does anyone knows? Bellow is my function code. Pleaasseeee, I spent the whole day trying to fix this
This section was supposed to gather and compare the number of players in the session in order to show the ‘ready’ buttons. For example, since is getting none from the array, all the buttons are showing. Is not reading at all…
On Event Construct it reads 4 array normally. Am I missing something? In my event graph this is all I got. The rest of the code is running through game mode and player controller, but it seems fine… I’ve never used array before, so I don’t know if I’m letting something on the loose
I think I’m getting somewhere. Using a custom event on my widget event graph to fill again the array with the correct informations. Now, my ‘GET’ is returning the value attached to index. As it should. Yet, is not really updating the images… Any thoughts about it?