1. Check out the Store if you're looking to Buy HL2RP or other schemas for your server. You can click Buy Schemas on the very top navigation bar to visit the store.
  2. Use the Plugin Center to easily subscribe to and auto-install Clockwork plugins to your server, or submit and share plugins you have developed.
  3. Having trouble setting up or developing with Clockwork? Check out the Wiki or post in the Support Forum for advice from fellow users.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Other Make an item's effects temporary?

Discussion in 'Development' started by Business Radroach, Jun 7, 2019.

  1. Business Radroach

    Business Radroach Clockwork Customer

    Just like the title says, how would I make an item's effects temporary?
     
  2. Oliver

    Oliver Some kinda has-been Legend Clockwork Customer

    Code:
    player:BoostAttribute(self.name, ATB_STAMINA, 3, 120);
    That particular snippet of code is to boost an attribute. Last numerical value is the time in seconds it will last. In this case, the item would boost Attribute Stamina by 3 for 120 seconds.
     
    • Agree Agree x 1
    • Good Coder Good Coder x 1