Talk:RemoveItem - ObjectReference
Jump to navigation
Jump to search
This function seems to not respect base objects of the same type in the player inventory. Source--Twilight Sky (talk) 2016-09-24T02:00:26 (EDT)
- I had observed such behavior when using OnItemAdded - ObjectReference and though it was the event's baseobject parameter doing this, but I will leave the note there until I'm certain that issue lies with RemoveItem.--Twilight Sky (talk) 2016-09-24T04:56:02 (EDT)
- The problem lies entirely with this function. The note on OnItemAdded will be removed accordingly.--Twilight Sky (talk) 2016-09-25T08:18:17 (EDT)
- Removed this note as it is not relevant and is inaccurate: "*The function accepts a form object, however you can't make a property to a form object, you need to create a property to another type of object that extends form. Most often a MiscObject, or Weapon, etc.". While you can't define a property of type Form in the Creation Kit, you can do so manually in the script. Kinggath (talk) 2018-01-23T14:15:26 (CST)
- Thanks for the correction Kinggath. Scrivener07 (talk) 2018-01-23T17:34:00 (EST)
- Removed this note as it is not relevant and is inaccurate: "*The function accepts a form object, however you can't make a property to a form object, you need to create a property to another type of object that extends form. Most often a MiscObject, or Weapon, etc.". While you can't define a property of type Form in the Creation Kit, you can do so manually in the script. Kinggath (talk) 2018-01-23T14:15:26 (CST)
- The problem lies entirely with this function. The note on OnItemAdded will be removed accordingly.--Twilight Sky (talk) 2016-09-25T08:18:17 (EDT)
I have done some testing and found that this function will fail to remove items by keyword if the items had the keyword added at runtime. It works fine if the keyword is defined on the base form. --Msalaba (talk) 17:53, 27 September 2025 (EDT)