Background for Skyrim SE
Member of the WornObject script
voidfunctionCreateEnchantment(ActorakActor, inthandSlot, intslotMask, floatmaxCharge, MagicEffect[]effects, float[]magnitudes, int[]areas, int[]durations)NativeGlobal

Description

Documentation Comment

Creates a new enchantment on the item given the specified parameters
all arrays must be the same size
created enchantments are not purged from the save when removed or overwritten
exact same enchantments are re-used by the game


Caveats


Parameters

ActorakActor

inthandSlot

intslotMask

floatmaxCharge

MagicEffect[]effects

float[]magnitudes

int[]areas

int[]durations


Examples

Auto-Generated Example

Actor myActor__akActor
int myInt__handSlot
int myInt__slotMask
float myFloat__maxCharge
MagicEffect[] myMagicEffectArray__effects
float[] myFloatArray__magnitudes
int[] myIntArray__areas
int[] myIntArray__durations

WornObject.CreateEnchantment(myActor__akActor, myInt__handSlot, myInt__slotMask, myFloat__maxCharge, myMagicEffectArray__effects, myFloatArray__magnitudes, myIntArray__areas, myIntArray__durations)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.