Mod:Creation Kit/RemoveItemByComponent - ObjectReference

Mod:Creation Kit/Category:Scripting Mod:Creation Kit/Category:Papyrus Mod:Creation Kit/Category:Latent Functions Member of: Mod:Creation Kit/ObjectReference Script

Removes an arbitrary number of arbitrary items such that at least the specified number of the specified component is removed from this reference's inventory, possibly silently.

Parameters

 * akComponentToRemove: The component or form list of components the items to be removed must contain.
 * aiCount: How many components to remove. (Not items)
 * Default: 1
 * abSilent: If true, no message will be printed to the screen
 * Default: false
 * akOtherContainer: If not None, the removed item(s) will be moved into this ref's inventory
 * Default: None

Return Value
None.