i created a buton in a widget how make the button be random i want to use them for and each time the widget pop up i need to get defrent buttonability

i created a buton in a widget how make the button be random i want to use them for and each time the widget pop up i need to get defrent buttonability

Would this work?

image

1 Like

its not but thx i making an ability system it have 4 ablility each button have an ability i am conecting them to a level system each time i get one levle the button pop up but the prblem i have that i only want 2 button to show at once and if use one them i dont want to pop up again in the same play and i want all of them to be random

Keep the abilities in an array, choose one at random, execute what is needed and remove it from the array. This way it can never be chosen again.

i ma new so i dont know how to do so can you help ?
i tried to make the button varible type array but the ue crash

Would you mind sharing the script you’ve got, otherwise I can only suggest something generic which you may struggle to incorporate.


each ability have the same code