Thanks ply
now it shows the HUD but now we the enemy is dead the HUD wont go away
How does the script determine when the enemy is dead?
desc = Zombie Melee 1 & 2
;Extended script, Credit to Mark Blosser (bond1) , original author
;Triggers
;WALKING WAYPOINTS
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
;DETECT PLAYER
:state=0:hudreset,hudx=50,hudy=20,hudimagefine=gamecore\huds\Danger.tga,hudname=Danger,hudhide=1,hudmake=display
:state=0,plrdistwithin=150,plrcanbeseen:waypointstop,state=9,rotatetoplr,setframe=96,hudshow=Danger
:state=0,shotdamage=1:waypointstop,state=12,rotatetoplr,setframe=97,state=1
:state=1,plrcannotbeseen=1:hudhide=1
;INTRO ANIMATION
:state=9:waypointstop,incframe=96
:state=9,frameatend=96:state=5
;CHOOSE MELEE ATTACK
:state=5,random=2:state=1
:state=5,random=2:state=6
;MELEE ATTACK 1
:state=1,shotdamage=10:waypointstop,state=12,setframe=97
:state=1,plrdistfurther=100:waypointstop,rotatetoplr,movefore=1,animate=92
:state=1,plrdistwithin=100:waypointstop,rotatetoplr,setframe=93,state=7
:state=7,shotdamage=10:waypointstop,state=12,setframe=97
:state=7,framebeyond=93 20,plrdistwithin=110:plraddhealth=-10,sound=audiobank\misc\melee.wav,state=8
:state=7:incframe=93,rotatetoplr
:state=7,frameatend=93:state=5
:state=8:incframe=93
:state=8,frameatend=93:state=5
;MELEE ATTACK 2
:state=6,shotdamage=10:waypointstop,state=12,setframe=97
:state=6,plrdistfurther=100:waypointstop,rotatetoplr,movefore=1,animate=92
:state=6,plrdistwithin=100:waypointstop,rotatetoplr,setframe=95,state=2
:state=2,shotdamage=10:waypointstop,state=12,setframe=97
:state=2,framebeyond=95 14,plrdistwithin=110:plraddhealth=-10,sound=audiobank\misc\melee.wav,state=3
:state=2:incframe=95,rotatetoplr
:state=2,frameatend=95:state=5
:state=3:incframe=95
:state=3,frameatend=95:state=5
;STAGGER ANIMATION
:state=12:waypointstop,incframe=97
:state=12,frameatend=97:state=5