CastEnchantment - ANDR PapyrusFunctions

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ANDR_PapyrusFunctions Script

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

Syntax[edit | edit source]

Function CastEnchantment(Actor akSource, Enchantment akEnchantment, Actor akTarget) global native

Examples[edit | edit source]

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

Parameters[edit | edit source]

  • akSource: The Actor from which to "cast" the enchantment.
  • akEnchantment: The Enchantment to apply.
  • akTarget: The Actor at which to apply the enchantment's effects.

Return Value[edit | edit source]

None.

Notes[edit | edit source]

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

See Also[edit | edit source]