SetEnchantment - Armor

From the CreationKit Wiki
Revision as of 22:40, 28 October 2014 by imported>Egocarib
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)

Syntax[edit | edit source]

Function SetEnchantment(Enchantment e) native

Parameters[edit | edit source]

The enchantment to be associated with that armor.

Return Value[edit | edit source]

none

Examples[edit | edit source]

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

Notes[edit | edit source]

  • 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 Also[edit | edit source]