Hello! I have a very slightly improved version of the Half-Life AutoMed script from the community guide. It was scripted with variable incrementing instead of state incrementing, the sound it uses to heal the player fits better, and it has an additional action exclusive for mod users which enhances the script.
Well, it's another useless script but enjoy! lol
;Artificial Intelligence Script
;Header
desc = AutoMed Station. Can refill player's healh until the player's is full or if it runs out. Written by Mike F.
;Triggers
:state=0:localvar=1,setvar=0,state=1
:state=1,plrdistwithin=100,plrusingaction=1,plrhealthless=100,pickobject=1,varnotequal=100:plraddhealth=1,incvar=1,loopsound=audiobank/misc/steam.wav
:state=1,pickobject=0:stopsound
:state=1,plrusingaction=0:stopsound
:state=1,plrdistfurther=100:stopsound
:state=1,plrhealthgreater=99:stopsound
:state=1,varequal=100:stopsound,state=2
;End of Script
If you are NOT using Fenix Mod or Project Green/Blue, remove pickobject=1 from the 2nd line.