How would I go about scripting a health pack that displays text like when you pick up a weapon? I tried just adding the image-based lines from the weapon script to the health script but it didn't work.
EDIT: Never mind. I figured it out. If anybody needs the script. I'll post a modified version. Just remember to change the "healthup.wav", "healthimage.tga", and "hudname=healthimage" to your desired names and directories!
;Artificial Intelligence Script
;Header
desc = Health with Image
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\healthimage.tga,hudname=healthimage,hudhide=1,hudmake=display,state=10
:state=10,cantake,plrdistwithin=80:state=1,playertake,plraddhealth=50,plrsound=audiobank\items\healthup.wav,hudshow=healthimage,hudfadeout=healthimage
;state=2:state=3,playerdrop,colon,plrsound=audiobank\items\healthup.wav
:state=3,plrdistfurther=65:state=10
;End of Script
Hello one and all...