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


Parameters

  1. ActorakActor

  2. inthandSlot

  3. intslotMask

  4. Enchantmentsource

  5. 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.