;Artificial Intelligence Script
;by Pigs can fly
;Header
desc = enemy HUD system
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\health1.png,hudname=Health1,hudhide=1,hudmake=display,state=9
:state=9:state=10,setvar1=health
:state=10,plrdistwithin=80:state=11,hudshow=Health1
:state=11,var1less=175:hudfadeout=Health1,state=12
:state=12:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\health2.png,hudname=Health2,hudhide=1,hudmake=display,state=13
:state=13,plrdistwithin=80:state=14,hudshow=Health2
:state=14,var1less=125:hudfadeout=Health2,state=15
:state=15:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\health3.png,hudname=Health3,hudhide=1,hudmake=display,state=16
:state=16,plrdistwithin=80:state=17,hudshow=Health3
:state=17,var1less=75:hudfadeout=Health3,state=18
:state=18:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\health4.png,hudname=Health4,hudhide=1,hudmake=display,state=19
:state=19,plrdistwithin=80:state=20,hudshow=Health4
:state=20,var1=0:hudfadeout=Health4,state=21
:state=21:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\health5.png,hudname=Health5,hudhide=1,hudmake=display,state=22
:state=22:hudshow=Health5,hudfadeout=Health5
;End of Script
You need Empty's Update to get it working.
And it doesn't seem to work
All the free PCF Productions Stuff