Background for Skyrim SE
Member of the WornObject script
voidfunctionSetEnchantment(ActorakActor, inthandSlot, intslotMask, Enchantmentsource, floatmaxCharge)NativeGlobal

Description

Documentation Comment

Changes an item's player-made enchantment to something else
None enchantment will remove the existing enchantment
does not delete the custom enchantment, only removes it


Caveats


Parameters

ActorakActor

inthandSlot

intslotMask

Enchantmentsource

floatmaxCharge


Examples

Auto-Generated Example

Actor myActor__akActor
int myInt__handSlot
int myInt__slotMask
Enchantment myEnchantment__source
float myFloat__maxCharge

WornObject.SetEnchantment(myActor__akActor, myInt__handSlot, myInt__slotMask, myEnchantment__source, myFloat__maxCharge)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.