Difference between revisions of "SetEnchantment - Armor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Dienes
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Armor Script, Weapon Script Sets the enchantment associated...")
 
imported>Egocarib
m
Line 22: Line 22:
ArmorProperty.SetEnchantment(EnchantmentProperty)
ArmorProperty.SetEnchantment(EnchantmentProperty)
</source>
</source>
== 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)


== See Also ==
== See Also ==

Revision as of 22:40, 28 October 2014

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

Function SetEnchantment(Enchantment e) native

Parameters

The enchantment to be associated with that armor.

Return Value

none

Examples

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

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)

See Also