SetNoUnequip

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

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

[help]
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.

See Also