Hey. I'm trying to make a script that basically states that if you get close to an object a small picture that says "use" shows up in the top right corner and is you press enter a different picture shows up
;Artificial Intelligence Script
;Header
desc = plr walks up to a entity and a "use" dialouge shows up and if the user presses enter a pic shows up
;Triggers
:state=0,plrdistwithin=50:hudreset,hudx=93,hudy=95,hudimagefine=gamecore\huds\scifi1\use.tga,hudname=use,hudhide=1,hudmake=display,state=10
:state=0,plrdistwithin=50:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\scifi1\desktop(moniter).tga,hudname=desktop,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=50,plrusingaction=1:hudshow=desktop,state=2
:state=1,plrdistfurther=50:hudunshow=use,state=0
:state=2,plrdistwithin=50,scancodekeypressed=14:hudunshow=desktop,state=0
:state=10,plrdistwithin=50:hudshow=use,state=11
:state=10,plrdistfurther=50:hudunshow=use,state=11
:state=11,plrdistfurther=50:hudunshow=use,state=0
;End of Script
the use picture shows up but the other one wont if i press enter