I already have a trigger for it to happen. the person steps in water and the variable wet goes up one triggering the action of the person clothes being ruined by a certain amount for a certain amount of time. Now I just need a way to make it happen. how do I make a variable go down a certain number at a specific time in a cetain amount of time. like his clothes are ruined by 3 every 3 seconds for 12 seconds.
Jul 22 2013, 5:59 pm
Best response
|
|
spawn() |
it would really help if you explained the code after you put it. it would benefit me more if I could understand it... im kinda a noob HAHA
|
In response to Hinotai
|
|
Hinotai wrote:
it would really help if you explained the code after you put it. it would benefit me more if I could understand it... im kinda a noob HAHA Alright, thats why I put comments in mine. spawn()//Makes the following launch without stalling whatever current proc this resides in. If you would rather, you can make this it's own proc. |
mob |
In response to Koriami
|
|
Koriami wrote:
> spawn() The remainder operator would be perfect for that, see the % operator. |