1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
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

Previous Readers (Total: 0)