Hi nnn, and welcome
First, what kind of entity is the player picking up? An item or a weapon?
But try this and see if it works, I change it a bit. Also, make sure in the entities
property setting, "Always Active" is set to YES !!! or it wont work
;Artificial Intelligence Script
;Header
desc = Pickup Item (can drop - press H) [MUST USE PHYSICS ALWAYS ON]
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,playertake,coloff,plrsound=$0,hudshow=itemprompt,hudfadeout=itemprompt
;playerdrop when press H key causes an automatic increment of the state value
:state=1,scancodekeypressed=35:playerdrop,state=2,plrsound=$1
:state=2,plrdistfurther=45:state=10
;End of Script
My games never have bugs. They just develop random features..
Lots and lots of random features...