SetEnchantment - Armor

SKSE Member of: Armor Script, Weapon Script

Sets the enchantment associated with this armor. Note refers to the base object, not an object reference. (This function requires SKSE)

SyntaxEdit

Function SetEnchantment(Enchantment e) native

ParametersEdit

The enchantment to be associated with that armor.

Return ValueEdit

none

ExamplesEdit

; Set the enchantment on ArmorProperty
ArmorProperty.SetEnchantment(EnchantmentProperty)

NotesEdit

  • Using this function to add an enchantment with a formID greater than 0xFF000000 will cause the game to crash. (This includes enchantments crafted at the enchanting table by the player, or created with SKSE's CreateEnchantment() function)

See AlsoEdit