CuteLion Posted November 27, 2023 Posted November 27, 2023 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. 2
Noqn Posted November 27, 2023 Posted November 27, 2023 (edited) 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, 2023 by Noqn 1
Kvellen Posted November 28, 2023 Posted November 28, 2023 (edited) 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, 2023 by Kvellen 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now