Easy way to unequip weapon after dialogue?

Post » Wed Dec 01, 2010 12:28 pm

Im trying to unequip the weapon and drop it in the character bag (or maybe drop it on the flood) after a given dialogue (for a quest). Whats the easy way to do that? I figure i could run a script that check the id of what equiped in slot #5 then removeitem referencied or re-use a place weapon in a invisible container etc. (but i dont need to confiscate the gun).. I just hope there's a more easier way to do that.

Thanks!
User avatar
maddison
 
Posts: 3498
Joined: Sat Mar 10, 2007 9:22 pm

Post » Wed Dec 01, 2010 9:51 am

You'll need to use NVSE. GetEquippedObject returns the base object of the item in a specified slot. I've used UnEquip with this reference successfully.
User avatar
abi
 
Posts: 3405
Joined: Sat Nov 11, 2006 7:17 am

Post » Wed Dec 01, 2010 8:08 am

Rather than worrying about what is equipped...
ActorREF.AddItem Fists 1ActorREF.EquipItem Fists 1 ; No Unequip
...would unilaterally unequip anything until...
ActorREF.RemoveItem Fists 1
...then all that matters is what's not equipped.
User avatar
natalie mccormick
 
Posts: 3415
Joined: Fri Aug 18, 2006 8:36 am


Return to Fallout: New Vegas