;Artificial Intelligence Script

;Header

desc          = Pick up item by pressing use

;Triggers

:state=0:hudreset,hudx=15,hudy=95,hudimagefine=gamecore\huds\inventory_keycard.dds,hudname=keycard,hudhide=1,hudmake=display,state=10
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\hand.png,hudname=pressentertouse,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40,plrfacing=50:hudshow=pressentertouse
:state=10,plrdistfurther=41:hudunshow=pressentertouse

:state=10,plrdistwithin=40,plrusingaction=1:hudshow=keycard,activate=2,activateifused=1,hudunshow=pressentertouse
:state=10,activated=2:playertake,sound=$0

;End of Script

