Difference between revisions of "GetEnchantment- ObjectReference"
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>Rasikko (Added notes about why this should be called on a reference outside of a container.) |
||
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. | |||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] |
Revision as of 03:21, 1 December 2017
SKSE Member of: ObjectReference Script
Returns the enchantment associated with this ObjectReference. (This function requires SKSE)
Syntax
Enchantment Function GetEnchantment() native
Parameters
none
Return Value
- The enchantment of the ObjectReference.
Examples
- 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.