SetNoUnequip
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
When called on an Inventory Reference of a currently equipped item, sets whether or not the item may be unequipped by normal means, or only via script commands. The effect of this function is save-baked.
Syntax
reference.SetNoUnequip noUnequip:0/1
Example
set rEqBodyArmorRef to actorRef.GetEquippedItemRef 2 if rEqBodyArmorRef rEqBodyArmorRef.SetNoUnequip 1 endif
Notes
- The message that plays when the player tries unequipping the "NoUnequip" item is controlled by the sCantUnequipGeneric gamesetting.
- This function also prevents the player from dropping the equipped item by normal means.
- The message that plays once this occurs is controlled by the sCantRemoveWornItem gamesetting.