UPDATE: I got it working, I didn't do it the way you guys said to do it though.
I will post how to do it here for anyone who wants to do it...:
1- Go to C:\Program Files\The Game Creators\FPS Creator\Files\scriptbank
2- Then find pickupkey.fpi and open it in Notepad. Youll see this:
;Artificial Intelligence Script
;Header
desc = Pickup Key
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupakey.tga,hudname=keyprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=keyprompt,hudfadeout=keyprompt
:state=1:rundecal=5
;End of Script
And change it to this:
;Artificial Intelligence Script
;Header
desc = Pickup Key
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupakey.tga,hudname=keyprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=900:state=1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=keyprompt,hudfadeout=keyprompt
:state=1:rundecal=5
;End of Script
As you can see I changed the number 40 to 900. (At the end if this doesn't work you didn't follow my instructions OR you need to change 900 to an even bigger number.)
3- Right click on your enemy, and youll see a table.
4- Edit the Name, you MUST change the name you may not leave the default name. Also under the AI scripts tab there should be a Destroy label in that change it to pickupkey.fpi Press Apply Changes at the bottom.
5- Now Right click on the door. Under AI scripts and change the label Main to doorkey.fpi And under AI Automated change the label Use key to the name you changed the enemy to earlier. Press Apply Changes at the bottom.
6- Thats it remember after you have gotten the key from the enemy remember when you get ot the door it still wont let you through until you press ENTER.
Why it works:
I just put this for ppl curious why it works. It works because you when you put pickupkey.fpi in the destroy section it means that after you killed the enemy it becomes a key. But youd have to walk on top of the dead guy to pick up the key. SO when you change 40 to 900 it changes the span of which the key can be picked up from. So before it would mean if you were 40 feet within the enemy youd be able to pick up the key but when you are 900 ft. within the enemy when it dies you get to pick it up. So now the product is as SOON as you kill the enemy the game will say youve picked up a key.