Try the following (I put in a trigger Main script):
;Artificial Intelligence Script
;Header
desc = Night Vision Goggles
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\nvg.tga,hudname=nvg,hudhide=1,hudmake=display,state=1
:state=1,scancodekeypressed=49:ambience=95,hudshow=nvg,state=2
:state=2,scancodekeypressed=0:state=3
:state=3,scancodekeypressed=49:ambience=13,hudunshow=nvg,state=4
:state=4,scancodekeypressed=0:state=1
;End of Script
This follows the same script that I use for goggles. I usually use the
hudunshow myself for huds.
As far as ambience... the following script works for both the goggles and ambience. I've tested on my side and you may need to adjust the ambience values to suit your needs:
;Artificial Intelligence Script
;Header
desc = Goggles (G key)
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\goggles_blood.png,hudname=goggles,hudhide=1,hudmake=display,state=1
:state=1,scancodekeypressed=34:ambience=95,ambiencered=5,ambienceblue=5,ambiencegreen=5,hudshow=goggles,state=2
:state=2,scancodekeypressed=0:state=3
:state=3,scancodekeypressed=34:ambience=13,ambiencered=255,ambiencegreen=255,ambienceblue=255,hudunshow=goggles,state=4
:state=4,scancodekeypressed=0:state=1
;End of Script
- BlackFox
RPG Mod- Create a world full of adventure