Dropping Items from Inventory at Eye Level?

Post » Sat May 18, 2013 2:05 am

I'm writing a script that is meant to drop a 'garbage' item after you use it. However, using the player.drop itemname X simply places the garbage item at your feet instead of dropping it from eye level and hitting the ground like it would if you discarded the item with your Pip-Boy. Does anyone know how to do this? Thanks.

User avatar
Tiffany Holmes
 
Posts: 3351
Joined: Sun Sep 10, 2006 2:28 am

Post » Sat May 18, 2013 3:42 am

use player.removeitem instead, this disables it from inventory.

It's how I get rid of quest items.

User avatar
Robert Jackson
 
Posts: 3385
Joined: Tue Nov 20, 2007 12:39 am

Post » Sat May 18, 2013 4:34 am

But I don't want to remove it completely, I actually want it to visibly drop to the ground when you come out of your Pip-Boy.

User avatar
Sheila Esmailka
 
Posts: 3404
Joined: Wed Aug 22, 2007 2:31 am

Post » Sat May 18, 2013 3:58 pm

Sorry, thought you wanted to avoid the clutter at their feet.

Find the script that makes the Follower drop what they won't wear, like Boone with the Legion Armor and see what that has in it.

That's the closest to the effect your looking for.

Also, if you look at your character in third person, the items may appear to be dropping from waist level, which is where the followers start to drop their stuff from, so it could be that there is no one command to do this

What you would have to do then is you something like at placeatme (or whatever the script equivalent is) with the 3 variables for X,Y,Z. X and Y will be how far the item is from the NPC, and Z will be how high off the ground. You will still have to use the removeitem command to get it out of inventory, then your going to spawn the item in thin air in front of the character with the placeatme command. Then hopefully it drops on the ground and just does not hang there.

User avatar
Crystal Clear
 
Posts: 3552
Joined: Wed Aug 09, 2006 4:42 am


Return to Fallout: New Vegas