Difference between revisions of "OnItemRemoved - ObjectReference"
OnItemRemoved - ObjectReference (edit)
Revision as of 04:30, 28 February 2015
, 04:30, 28 February 2015→Notes
imported>LukeH m (→Notes) |
imported>DavidJCobb m (→Notes) |
||
Line 32: | Line 32: | ||
== Notes == | == Notes == | ||
*If you only care about certain kinds of objects, you should also use [[AddInventoryEventFilter - ObjectReference|AddInventoryEventFilter]] to filter out any events for things you aren't interested in. | *If you only care about certain kinds of objects, you should also use [[AddInventoryEventFilter - ObjectReference|AddInventoryEventFilter]] to filter out any events for things you aren't interested in. | ||
**Refer to the notes for [[OnItemAdded - ObjectReference#Notes|OnItemAdded]] to get an idea of how important this is. | |||
*If the item is consumed by any means (crafting, charging, poisoning, eat/drink) the dest parameter is None and most likely, but not always, the reference is None too. | *If the item is consumed by any means (crafting, charging, poisoning, eat/drink) the dest parameter is None and most likely, but not always, the reference is None too. | ||
* If player uses a poison to apply it to a weapon the event is fired twice: before and after the confirmation dialogue. If canceled in the confirmation dialogue then is not fired twice. | * If player uses a poison to apply it to a weapon the event is fired twice: before and after the confirmation dialogue. If canceled in the confirmation dialogue then is not fired twice. |