sdjknights Posted May 4, 2018 Share Posted May 4, 2018 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 More sharing options...
Deleted3897072User Posted May 4, 2018 Share Posted May 4, 2018 (edited) 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 May 4, 2018 by OldMansBeard Link to comment Share on other sites More sharing options...
sdjknights Posted May 4, 2018 Author Share Posted May 4, 2018 (edited) 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 May 4, 2018 by sdjknights Link to comment Share on other sites More sharing options...
Deleted3897072User Posted May 4, 2018 Share Posted May 4, 2018 The item in the player's inventory will be the base object DA04OghmaInfinium 0001A332 so that is what you should remove. Link to comment Share on other sites More sharing options...
sdjknights Posted May 4, 2018 Author Share Posted May 4, 2018 Brilliant. Thanks :) Link to comment Share on other sites More sharing options...
Recommended Posts