Yo
I have a problem with the following script it's really important and I need it
My Plan: A Hud should appear when I near an entity, if I press "F" then the hud shall gets invisible or like other peoples would call it "disabled" and another hud shall be shown.
I've tested the following script, shows the hud but I can't pickup the weapon.
;Artificial Intelligence Script
;Header
desc = paperscript (If near shows hud press {ENTER} to pickup)
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\folder1\test.png,hudname=test,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:hudshow=test,hudfadeout=test
:state=10,plrdistwithin=40:hudshow=WEAPONPROMPT,state=12
:state=12,plrdistfurther=40:hudunshow=WEAPONPROMPT,state=12,state=1
;Player Press F key
:state=12,scancodekeypressed=33:hudunshow=WEAPONPROMPT,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,state=14
;End of Script