Difference between revisions of "Talk:OnEquipped - ObjectReference"
Jump to navigation
Jump to search
imported>Shirakami (Created page with "== Conditions of triggering the event == As mentioned in my recent edit to the page, the event won't always fire. Depending on the way it was equipped it may or may not work....") |
(→OnEquipped doesn't work properly for stacks of items.: new section) |
||
Line 6: | Line 6: | ||
I think these rules also apply to [[OnUnequipped - ObjectReference]] and the functions for [[Actor Script]] such as [[OnObjectEquipped - Actor]] and [[OnObjectUnequipped - Actor]]. | I think these rules also apply to [[OnUnequipped - ObjectReference]] and the functions for [[Actor Script]] such as [[OnObjectEquipped - Actor]] and [[OnObjectUnequipped - Actor]]. | ||
Unfortunately, I won't be able to test things through for the time being. | Unfortunately, I won't be able to test things through for the time being. | ||
== OnEquipped doesn't work properly for stacks of items. == | |||
The event doesn't seem to work properly with items that are stacked. To replicate: acquire 2 or more of an item that contains a script with an OnEquipped event, then save and reload. The stack of items will be nonfunctional until you reduce the stack size down to 1. |
Revision as of 21:12, 27 May 2024
Conditions of triggering the event
As mentioned in my recent edit to the page, the event won't always fire. Depending on the way it was equipped it may or may not work. So far what I know about it is:
- If the item is being equipped through the inventory, it will work.
- If the item is being equipped via a papyrus function EquipItem - Actor it will not fire.
- If the item is being equipped via a consoel command EquipItem it will not fire.
I think these rules also apply to OnUnequipped - ObjectReference and the functions for Actor Script such as OnObjectEquipped - Actor and OnObjectUnequipped - Actor. Unfortunately, I won't be able to test things through for the time being.
OnEquipped doesn't work properly for stacks of items.
The event doesn't seem to work properly with items that are stacked. To replicate: acquire 2 or more of an item that contains a script with an OnEquipped event, then save and reload. The stack of items will be nonfunctional until you reduce the stack size down to 1.