RemoveInventoryEventFilter - ScriptObject
(Redirected from RemoveInventoryEventFilter - ObjectReference)
Jump to navigation
Jump to search
Member of: ScriptObject
Removes a form as a "filter" for OnItemAdded and OnItemRemoved events sent to this object. The filters are removed separately from each script attached to an object, so each script on an object needs to separately manage its own filters and will not interfere with any filters on any other scripts attached to the same object. If all filters are removed, the object will no longer receive inventory events.
Syntax[edit | edit source]
Function RemoveInventoryEventFilter(Form akFilter) native
Parameters[edit | edit source]
- akFilter: The filter to remove. Events related to this filter will no longer be sent to this object.
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; 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)