;Artificial Intelligence Script desc = Press F key to pick up ;If player presses F key, weapon will be picked up, and added to player's weapon inventory. ;Triggers :state=0:hudreset,hudx=50,hudy=90,hudsize=18,hudtext=Press F to buy this weapon,hudname=WEAPONPROMPT,hudhide=1,hudmake=display,state=10 :state=10,plrdistwithin=40:hudshow=WEAPONPROMPT,state=12 :state=12,plrdistfurther=40:hudunshow=WEAPONPROMPT,state=12,state=10 ;Player Press F key :state=12,scancodekeypressed=33:hudunshow=WEAPONPROMPT,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,state=14 :ifstate=14,Plrradhealth-40 ;End of Script