Removedelete item (not in a container) in script

Post » Sun Sep 15, 2013 1:30 am

This is a tough one. Any input whatsoever is greatly appreciated.

What I want to do, in short, is delete or remove an item that's somewhere in the floor or on top of something (in other words, not in a container) through a script.

I listen to the GetCrosshairRef function to check when the player looks at the item I want, and when he does I can get its reference. The problem here is that when the player presses E, he will pick up the item and I don't want him to. I want that item to go to another container. Now, since I can already get the reference, I can easily add a copy of that item into the container I want, but the player will still put the original item into his inventory, so is there a way to delete it before he does that? I can disable the E button so that the player doesn't actually pick up anything, but I'm still left with the problem of having to delete an item that's not in any container.

I know I can delete the item once it's in the player's inventory, but I don't want the "Picked up item" message to pop up either.

User avatar
Oyuki Manson Lavey
 
Posts: 3438
Joined: Mon Aug 28, 2006 2:47 am

Return to Fallout: New Vegas