Jump to content

Linked containers?


FuzeTek

Recommended Posts

Does anybody know of a Script or a way to make multiple item boxes that are linked together over multiple cells? I want to be able to put items and weapons into a container and retrieve them from a different container and vice versa.
Link to comment
Share on other sites

Hello.

 

How about this: You create one single container, make it a persistent reference and place it where you want the first box to be.

Then you create an activator using a container model (or whatever else you want the second box to look like), place it in a different cell where you want the second box to be and script its OnActivate block to activate the persistent container instead of itself.

 

Script RemoteContainerActivatorScript

Begin OnActivate
If GetActionRef == Player
	PersistentContainerRef.Activate Player
EndIf
End

 

When the activator is used by the player, you will hear the persistent containers opening sound and the container menu will appear. If you want the “fake” container to animate (like opening a drawer or a locker door) you will have to fancy up the script a little.

 

Good luck.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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