Jump to content

AddItem


Recommended Posts

Hey guys

 

Just a quick question concerning AddItem - I'm trying to get an item to swap between a display plinth and a utility chest. No real problems, but something I'm worried about down the line;

 

I've referenced Oghma Infinum as a Book rather than an ObjectReference, which means that to "swap" the item, I have to actually remove it and create a new instance each time. In this case, it really doesn't matter, but I'm just wondering - am I supposed to reference the very book in Septimus' Outpost?

Link to comment
Share on other sites

Place a book on the display stand in the CK and mark it as Initially Disabled. In your script, when you want to move the book from the inventory to the plinth, do a RemoveItem() as you have been but don't create a new book, just Enable() the one that is already there so that it becomes visible. Conversely, when you move it back and do an AddItem(), don't destroy the one on the plinth, just Disable() it,

Edited by OldMansBeard
Link to comment
Share on other sites

Aye that's what I've got. It's all working fine, I'm just wondering whether the item I remove from the player should be a Book property or a Reference to the copy found at Septimus' Outpost.

 

Edit: Just realised that I hadn't mentioned - I'm removing it from the player's inventory, if they have it, when they activate the plinth.

Edited by sdjknights
Link to comment
Share on other sites

  • Recently Browsing   0 members

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