Jump to content

[Geck] Opening Inventory


ZoumeyZ

Recommended Posts

Hello !

I'm making my first mod , and i've been stuck for quite a while now.

 

I'm making a briefcase that let you go in casinos with weapons that weight less than 10 lb.

the briefcase being a weapon , when you take it and "fire" it , it should open an inventory where you can store a weapon.

 

but , how can i do that ? shouldn't the inventory be from a container or a NPC in the cell the player is in ? is there a way around it ?

 

thank for your help ! :smile:

Link to comment
Share on other sites

The container doesn't have to be in the same cell where the player is.

You can create an empty interior cell and place the container there. Give the container a unique Reference ID and tick the Persistent Reference box.

You can then access the container remotely, from anywhere, by "activating" it via a script. It would be more suitable to use a clothing item with no Biped Object, and attach a script to it that will fire whenever the player equips this item. The script should look something like this:

scn	HoldoutBriefcaseScript

begin OnEquip player

	ContainerRefID.Activate player
	player.UnequipItem BriefcaseEditorID

end
Link to comment
Share on other sites

  • Recently Browsing   0 members

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