Background for Skyrim SE
Member of the ANDR_PapyrusFunctions script
voidfunctionCastEnchantment(ActorakSource, EnchantmentakEnchantment, ActorakTarget)NativeGlobal

Description

Wiki Description

Casts this enchantment's effects from the specified actor, to a target actor.

Documentation String

  • akSource: The Actor from which to cast the Enchantment.
  • akEnchantment: Enchantment to cast.
  • akTarget: Actor at which to aim the Enchantment.

Caveats

CK Wiki - Notes

  • This function follows the same logic as the Spell.Cast(...) function, but for enchantments instead of spells.

Parameters

ActorakSource

CK Wiki Description

The Actor from which to "cast" the enchantment.

EnchantmentakEnchantment

CK Wiki Description

The Enchantment to apply.

ActorakTarget

CK Wiki Description

The Actor at which to apply the enchantment's effects.


Examples

ANDR_PapyrusFunctions.CastEnchantment(PlayerRef, EnchFireDamage01, NazeemRef)
; player has cast EnchFireDamage01 on Nazeem!

Auto-Generated Example

Actor myActor__akSource
Enchantment myEnchantment__akEnchantment
Actor myActor__akTarget

ANDR_PapyrusFunctions.CastEnchantment(myActor__akSource, myEnchantment__akEnchantment, myActor__akTarget)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.