Here is my Health regeneration script:
;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
I hope it works as it's untested and it's my second ever script!
A starting Games Designer. Need levels, characters and anything drawn and designed? Let me know...