Difference between revisions of "GetEnchantment- ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rasikko
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' ObjectReference Script Returns the enchantment associated with...")
 
imported>BusinessGoose
m (Providing information on how this function works with multiple enchantments.)
 
(2 intermediate revisions by one other user not shown)
Line 19: Line 19:
== Examples ==  
== Examples ==  
*None
*None
== Notes ==
* This is the only way to obtain player created enchantments. Items equipped on the player, with custom enchantments will return none if used with [[GetEnchantment - Armor]]. In order to get player created enchantments, this function must be used on the item outside of a container.
* This function works with objects with multiple enchantments (possible with the extra effects perk) as the objects actually only contain one enchantment. The magic effects from the second enchantment are stacked onto the first.
== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
*[[Enchantment Script]]

Latest revision as of 00:37, 25 July 2018

SKSE Member of: ObjectReference Script

Returns the enchantment associated with this ObjectReference. (This function requires SKSE)

Syntax[edit | edit source]

Enchantment Function GetEnchantment() native

Parameters[edit | edit source]

none

Return Value[edit | edit source]

Examples[edit | edit source]

  • None

Notes[edit | edit source]

  • This is the only way to obtain player created enchantments. Items equipped on the player, with custom enchantments will return none if used with GetEnchantment - Armor. In order to get player created enchantments, this function must be used on the item outside of a container.
  • This function works with objects with multiple enchantments (possible with the extra effects perk) as the objects actually only contain one enchantment. The magic effects from the second enchantment are stacked onto the first.

See Also[edit | edit source]