riccetts I must have had a brain-fart, after thinking about it I realized you can't use
"Item" pickup and plrwithinzone in same script ! My bad
What you have to do
is use the "pickupitem" script attached to the "Item" and placed into a "triggerzone"
The trigger zone would then have most of the previous script (minus the item pickup lines)
:state=0:hudreset,hudx=50,hudy=90,hudsize=22,hudfont=arial,hudtext= 'G' Hazmat suit,hudname=text,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\hazard.png,hudname=hazard,hudhide=1,hudmake=display,state=4
;press G for mask hud
:state=4,plrwithinzone=1:hudshow=text,state=5
:state=5,plrwithinzone=0:hudunshow=text
:state=5,keypressed=34 1:hudunshow=text,hudshow=hazard,state=6,sound=$0
:state=6,keypressed=34 0:state=7
:state=7,keypressed=34 1:hudunshow=hazard,state=8,sound=$0
:state=8,keypressed=34 0:state=5
Sorry about that, I was in a rush... found another typo
After testing this script I found a way to use it with an "Item" player can pickup, no zone needed.
Just make the "Item" the player picks-up set to "Always Active- YES" that way the script keeps running.
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsize=42,hudfont=arial,hudtext= PRESS 'G' For Hazmat Suit,hudname=text,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudglobalx,hudglobaly,hudimagefine=gamecore\huds\hazard.png,hudname=hazard,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:state=4,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt
;press G for mask hud
:state=4:hudshow=text,hudfadeout=text,state=5
;press G for mask hud
:state=5,keypressed=34 1:hudshow=hazard,state=6,sound=$0
:state=6,keypressed=34 0:state=7
:state=7,keypressed=34 1:hudunshow=hazard,state=8,sound=$0
:state=8,keypressed=34 0:state=5
Note: for the "hazard.png" I have BlackIce so I used the hudglobal commands, you may have to change?
My games never have bugs. They just develop random features..
Lots and lots of random features...