- Found in:
- SKSE
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
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)