Jump to content

How do I get items out of custom containers


Recommended Posts

Iâve placed a custom container in the game world and placed custom items in them but when I go in game to get the items out of the container my game freezes.

 

I tried following a Skyrim tutorial which stated that you needed to add a script to the custom item (I followed the tutorial all the way through but when I try to get the items out of the chest the game freezes) hereâs the script:

 

Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer) if (newContainer == Game.GetPlayer()) debug.messagebox("You have the ingot") endif Endevent

 

I changed the ingot part, Iâm stumped and I canât find any tutorials online

Link to comment
Share on other sites

  • 4 weeks later...

Anytime a crash like that occurs its because something is setup incorrectly. My advice, take a step back and do 1 thing at a time. Create a chest, see if you can open it. Then create the weapon, see if you can drop it or pick it up. If the weapon has a custom model, it could be a problem with the NIF. Scripts shouldn't be needed for what you want to do.

Link to comment
Share on other sites

Probably isnt the contained, it likely is a model issue as ajs has stated. I once worked on adding fries to the game and it would crash until changes were made for the model to work, I dont recall what specifically was done though.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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