Difference between revisions of "RemoveAllTypedItems"
imported>Henning (New page: {{Function |origin = VEGAS1 |summary = Removes all typed items (except those not listed in the exemption FormList) from the calling reference's inventory. If a target container is s...) |
imported>Henning |
||
Line 48: | Line 48: | ||
}} | }} | ||
==See Also== | ==See Also== | ||
*[http://fose.silverlock.org/fose_command_doc.html#Type_Codes]Complete like of type codes. | |||
*[[RemoveItem]] | *[[RemoveItem]] | ||
*[[RemoveAllItems]] | *[[RemoveAllItems]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK Vegas 1.1)]] | [[Category:Functions (GECK Vegas 1.1)]] |
Revision as of 21:28, 11 November 2010
A function included in the GECK Version 1.1.0.262 for Fallout: New Vegas.
Description
Removes all typed items (except those not listed in the exemption FormList) from the calling reference's inventory.
If a target container is specified, the typed items are moved to the target container with all equipment items retaining their current health; otherwise the items are destroyed as they would be via RemoveItem.
If the retain ownership flag is set to a non-zero value, the items' original ownership is retained; otherwise the ownership is cleared.
Short list of type codes:
- 24: Armor
- 25: Book
- 26: Clothing
- 29: Ingredient
- 31: Misc
- 40: Weapon
- 41: Ammo
- 46: Key
- 47: AlchemyItem
- 49: Note
- 50: ConstructibleObject
Note that not all items are in the obvious category. For example, ingestibles are under AlchemyItem and include magazines. Many of the items necessary for crafting at the workbench and reloader are listed under Misc alongside junk items.
Syntax
container.RemoveAllTypedItems TargetContainerID:ref RetainOwnershipFlag:int UnknownFlag:int TypeCode:int DestinationContainerID:ref
Example
player.RemoveAllTypedItems vGOMPlayerEquipmentContainer 1 0 40 NVImprovedHoldoutWeapons
See Also
- [1]Complete like of type codes.
- RemoveItem
- RemoveAllItems