Jail and equipped items

Post » Mon Feb 02, 2015 5:53 am

Hello!

I've a question: Supposing that my character was arrested with an item equipped and sent to the jail. When the character has exited the jail by using the bed, how can I avoid that item to be automatically equipped again?

Thank you.

User avatar
Stace
 
Posts: 3455
Joined: Sun Jun 18, 2006 2:52 pm

Post » Mon Feb 02, 2015 11:45 am

The possible solution I've found at the moment:

I've put a condition for IsInMenumode() on the OnEquipped event

If you're not in menu mode, then immediatley unequip the item.

This seems to work when you see your inventory menu or the favorites menu. However doesn't not works if you've shortcut the item.

User avatar
Anthony Diaz
 
Posts: 3474
Joined: Thu Aug 09, 2007 11:24 pm


Return to V - Skyrim