Jump to content

Copy item back to player when added to container


Indarello

Recommended Posts

  On 9/5/2021 at 2:44 AM, IsharaMeradin said:

 

Try the following and see if it meets your needs.

Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)
  (Self as ObjectReference).RemoveItem(akBaseItem,aiItemCount,false,akSourceContainer) ;remove original instance back to source - should be player
  (Self as ObjectReference).AddItem(akBaseItem,aiItemCount) ;add new instance of the base form to container
EndEvent

thanks, that works

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...