Jump to content

Accessing a container within the player inventory - Requesting help.


Thicketford

Recommended Posts

I've recently finished work on a boat travel mod that also lets players store items in a knapsack on the boat. I've created a 'cheat' item that will let a player access the knapsack when activated. If you drop the item, exit the inventory and then pick it back up, it works fine. However, I can't get it to work from within the player inventory. It's a misc. item using a gold coin as its model. The attached script looks like this...

 

 


Scriptname BTDBItemRetrievalScript extends ObjectReference

ObjectReference Property BTDBRealKnapsack Auto

Event OnActivate(ObjectReference akActionRef)
Actor Player = Game.GetPlayer()
BTDBRealKnapsack.Activate(Player)
EndEvent

 

I took the script from this thread...

 

http://forums.nexusmods.com/index.php?/topic/1160762-not-a-bag-of-holding-script-help/

 

I tried incorporating some of the script on this page, but I couldn't get it to work...

 

http://forums.nexusmods.com/index.php?/topic/1089941-need-help-getting-a-script-to-run-on-an-inventory-object/

 

Any help would be greatly appreciated.

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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