Background for Skyrim SE
Member of the Armor script
voidfunctionSetEnchantment(Enchantmente)Native

Description

Wiki Description

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


Caveats

CK Wiki - Notes

  • 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)

Parameters


Examples

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

Auto-Generated Example

Enchantment myEnchantment__e

myArmor__toCallFunctionOn.SetEnchantment(myEnchantment__e)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.