can someone tell me if there is a way to check all variables? i have a widget blueprint and i want that, when the widget is created, it looks at all the variables that i asked him to look, and do something for each true. for example i have 5 cars. if you buy 2 of them the game will set “is (car name) unlocked?” variable to true of both of the cars. i want the widget to see wich of the 5 cars are set to true, and for each boolean car variable set to true, the widget will show the button to summon the car
keep the unlocked cars in an array and loop over the array
i already tried it, but for each unlocked car it has to do a specific thing. wich with the array i dont know how to make it do something different for every true variable
maybe a gameplay tag container, you can break it to an array and switch on Tag