Background for Skyrim SE
Member of the ObjectReference script
voidfunctionRemoveInventoryEventFilter(FormakFilter)Native

Description

Wiki Description

Removes a form as a "filter" for ObjectReference.OnItemAdded(...) and ObjectReference.OnItemRemoved(...) events sent to this object. The filters are removed separately from the reference, any aliases, and any magic effects on the reference, so each will need to remove filters from themselves independently. If all filters are removed, the object will get events for everything again.

Documentation Comment

Remove an inventory event filter from this reference. Item added/removed events matching the
specified form (or in the specified form list) will no longer be let through.


Parameters

  1. FormakFilter

    CK Wiki Description

    The filter to remove. Events related to this filter will no longer be sent to this object.


Examples

; We no longer want inventory events for gold (if we have other filters) - or we want all events (if no other filters are set)
RemoveInventoryEventFilter(Gold)

Auto-Generated Example

Form myForm__akFilter

myObjectReference__toCallFunctionOn.RemoveInventoryEventFilter(myForm__akFilter)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.