Jump to content

Scripting question: How to disable a container after picking up an item


Willindor

Recommended Posts

Hello everyone,

 

For a mod that I have in mind I'm experiencing trouble with making a script that I just can't get to work. There is a container that I want to be disabled after I have an item that's inside of it in my inventory.

 

Here's a simplyfied example to explain what I hope to achieve:

Inside Victor's Shack (GSShackVictorInt) is a container named "TestingContainer007" located

Inside "TestingContainer007" there is Misc Item "TestingMiscItem007" located

When "TestingMiscItem007" is placed inside the player's inventory then "TestingContainer007" gets disabled and removed from the game so it's no longer in the way.

 

Is something like this possible?

 

Thanks in advance

Edited by Willindor
Link to comment
Share on other sites

  • Recently Browsing   0 members

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