Force equip, release override

Post » Mon Feb 17, 2014 1:43 pm

Howdy!

I want the following:

The player has a weapon equipped of his choice.

For a short period of time, I want him unable to equip it.

Then, I want him to be allowed to unequip it.

What I have done so far is assigned the player's wielded weapon to a variable (call it "weapon"), and then used equipitem(weapon, true, true) to equip it again and lock him to it, but how do I release the lock to the weapon?

Thank you.

User avatar
-__^
 
Posts: 3420
Joined: Mon Nov 20, 2006 4:48 pm

Post » Mon Feb 17, 2014 1:50 pm

Did you try calling equipItem(weapon, false, true) when you want to release the lock?

User avatar
Phillip Brunyee
 
Posts: 3510
Joined: Tue Jul 31, 2007 7:43 pm

Post » Mon Feb 17, 2014 11:52 am

I will try, I had thought equipitem would be noneffective with the flag set previously. Thank you.

User avatar
cosmo valerga
 
Posts: 3477
Joined: Sat Oct 13, 2007 10:21 am

Post » Mon Feb 17, 2014 10:34 pm

Works flawlessly, cheers.

User avatar
Fluffer
 
Posts: 3489
Joined: Thu Jul 05, 2007 6:29 am


Return to V - Skyrim