I'd like some help with this script made by minimovies inc. I can't get it to add 10 health after 1 second. It just keeps adding 1 health every 5 seconds
This is the original:
;Artificial Intelligence Script
;Header
desc = Player regenerates his health slowly over time.
;Assign this script to a crate or cylinder entity etc.
;The "timergreater" is a timer, in this case the player will receive 1 health every 5 seconds. Can be changed by changing the 5 to a different number.
;change the plrhealthless and plrhealthgreater number to a different one if you set your players max health differently.
;Triggers
:state=0:timerstart,state=1
:state=1,plrhealthless=500,timergreater=5000:plraddhealth=1,state=0
:state=1,plrhealthgreater=500,timergreater=5000:state=0
;End of Script
Here's what I changed it to:
;Artificial Intelligence Script
;Header
desc = Player regenerates his health slowly over time.
;Assign this script to a crate or cylinder entity etc.
;The "timergreater" is a timer, in this case the player will receive 1 health every 5 seconds. Can be changed by changing the 5 to a different number.
;change the plrhealthless and plrhealthgreater number to a different one if you set your players max health differently.
;Triggers
:state=0:timerstart,state=1
:state=1,plrhealthless=100,timergreater=1000:plraddhealth=10,state=0
:state=1,plrhealthgreater=100,timergreater=1000:state=0
;End of Script
Can someone please tell me what the problem is. Thanks.