Jump to content
XJDHDR

Possible to get reference to book that opened Book Menu?

Recommended Posts

I have a mod that marks books that the player has read and I'm trying to find ways to improve the mod. While browsing the Creation Kit wiki, I noticed that you can use the command "RegisterForMenu("BookMenu")" to receive an "OnMenuOpen(String MenuName)" event whenever the player reads a book.

Currently, I detect the player reading a book by attaching scripts with an OnRead event to books on the ground and attach a script to the PC with an OnObjectEquipped event.

Does anyone know a way to get a reference to the book that opened that Book Menu from that OnMenuOpen event? If there is a way, that would greatly simplify my mod's scripting.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Support us on Patreon!

Patreon
×
×
  • Create New...