November 27, 20232 yr Hello, so i've made a mod that for working requires the characters to wear a ring. I've seen the pinned post on how to add an item to a container and it worked, but from what i've seen i think it only works with containers that have never been opened. I'll like a way to make sure the player gets the rings doesn't matter where they'll be.
November 27, 20232 yr This works for me, even with an already opened container: In this case the 22746573-3fea-4362-bc8c-a919703d5793 is the ID of the container, which I got with the "PrintInstance oei_hovered" console command. if { IsInActiveScene(22746573-3fea-4362-bc8c-a919703d5793) } then { GiveItemsToObject(22746573-3fea-4362-bc8c-a919703d5793, Drug_Svef, 1) } Edited November 27, 20232 yr by Noqn
November 28, 20232 yr You can also put items straight into the player's inventory with: if { not IsInActiveScene(546e5d97-c234-46dc-9439-b23aafc02198) } then { GiveItems(Drug_Svef, 1) } Edited November 28, 20232 yr by Kvellen
Create an account or sign in to comment