I am trying to make a HUD with alpha fading but it just wont work! Can someone please head me in the right direction?
My code:
;Artificial Intelligence Script
;Header
desc = HUD
;Triggers
;Setup Images
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\Hurt.dds,hudname=Hurt,hudhide=0,changehudaplha=Hurt=255,hudmake=internal
;Trigger The Code
:state=0:state=10
; Health image Control
:state=10,plrhealthequal=100:changehudaplha=Hurt 100
:state=10,plrhealthless=100,plrhealthgreater=95:hudreset,hudshow=hurt,changehudaplha=Hurt 5,state=10
:state=10,plrhealthless=95,plrhealthgreater=90:hudreset,hudshow=hurt,changehudaplha=Hurt 10,state=10
:state=10,plrhealthless=90,plrhealthgreater=85:hudreset,hudshow=hurt,changehudaplha=Hurt 15,state=10
:state=10,plrhealthless=85,plrhealthgreater=80:hudreset,hudshow=hurt,changehudaplha=Hurt 20,state=10
:state=10,plrhealthless=80,plrhealthgreater=75:hudreset,hudshow=hurt,changehudaplha=Hurt 25,state=10
:state=10,plrhealthless=75,plrhealthgreater=70:hudreset,hudshow=hurt,changehudaplha=Hurt 30,state=10
:state=10,plrhealthless=70,plrhealthgreater=65:hudreset,hudshow=hurt,changehudaplha=Hurt 35,state=10
:state=10,plrhealthless=65,plrhealthgreater=60:hudreset,hudshow=hurt,changehudaplha=Hurt 40,state=10
:state=10,plrhealthless=60,plrhealthgreater=55:hudreset,hudshow=hurt,changehudaplha=Hurt 45,state=10
:state=10,plrhealthless=55,plrhealthgreater=50:hudreset,hudshow=hurt,changehudaplha=Hurt 50,state=10
:state=10,plrhealthless=50,plrhealthgreater=45:hudreset,hudshow=hurt,changehudaplha=Hurt 55,state=10
:state=10,plrhealthless=45,plrhealthgreater=40:hudreset,hudshow=hurt,changehudaplha=Hurt 60,state=10
:state=10,plrhealthless=40,plrhealthgreater=35:hudreset,hudshow=hurt,changehudaplha=Hurt 65,state=10
:state=10,plrhealthless=35,plrhealthgreater=30:hudreset,hudshow=hurt,changehudaplha=Hurt 70,state=10
:state=10,plrhealthless=30,plrhealthgreater=25:hudreset,hudshow=hurt,changehudaplha=Hurt 75,state=10
:state=10,plrhealthless=25,plrhealthgreater=20:hudreset,hudshow=hurt,changehudaplha=Hurt 80,state=10
:state=10,plrhealthless=20,plrhealthgreater=15:hudreset,hudshow=hurt,changehudaplha=Hurt 85,state=10
:state=10,plrhealthless=15,plrhealthgreater=10:hudreset,hudshow=hurt,changehudaplha=Hurt 90,state=10
:state=10,plrhealthless=10,plrhealthgreater=5:hudreset,hudshow=hurt,changehudaplha=Hurt 95,state=10
:state=10,plrhealthless=5,plrhealthgreater=1:hudreset,hudshow=hurt,changehudaplha=Hurt 100,state=10
:state=10,plrhealthless=1,plrhealthgreater=0:hudreset,hudshow=hurt,changehudaplha=Hurt 100,state=10
;The Showing
;End of Script
Thanks in advance.
You want a sig? this is your sig!