Jump to content

[LE] Inventory reset


basla1

Recommended Posts

Hello,

 

First sorry for my english it's not my main language.

 

Actually I try to create a script where I will be able to reset NPC inventory when I activate my activator. (It's for renew guard stuck like potion and arrow)

 

I tried to find something but still cannot figure what I need to do

 

Thanks,

Link to comment
Share on other sites

Hello,

 

First sorry for my english it's not my main language.

 

Actually I try to create a script where I will be able to reset NPC inventory when I activate my activator. (It's for renew guard stuck like potion and arrow)

 

I tried to find something but still cannot figure what I need to do

 

Thanks,

 

NVM I'm good with this one. Just another question is there a way to force NPC to equip equipment from a chest without taking the equipment from the chest(like doing a copy paste from the chest to NPC inventory) ? Via script or just need to do some link ?

 

Thanks

Link to comment
Share on other sites

Just use "AddItem(...) on your actor script, the game will create a new instance of your object form and the other instance already placed in your chest will stay there. AddItem is basically a COPY(myForm) / PASTE(an instance of MyForm) kind of function.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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