Setting A Limit On The Number Of Clicks Of Button

Hello,
I am just wondering how to set a limit on the number of times I click a button?

Thanks

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Make a new Integer Attribute and add 1 to it each time the button is clicked.
  • XREVGAMESXREVGAMES Member, PRO Posts: 19
    What you could do is create an integer attribute (we'll call it clicks) so that every time the button is pressed it checks that clicks is less than a defined number. And if not, then it will change clicks to clicks + 1.
Sign In or Register to comment.