CastSpellFromRef - ANDR PapyrusFunctions

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ANDR_PapyrusFunctions Script

Casts a spell from a given object reference, toward a given target object reference.

Syntax[edit | edit source]

Function CastSpellFromRef(Actor akSource, Spell akSpell, ObjectReference akTarget, ObjectReference akOriginRef) global native

Examples[edit | edit source]

ANDR_PapyrusFunctions.CastSpellFromRef(Game.GetPlayer(), Fireball, NazeemRef, YsoldaRef)
; Have the player cast a Fireball from Ysolda to Nazeem.

Parameters[edit | edit source]

  • akSource: The caster Actor responsible for the spell. (applies any modifiers for the spell)
  • akSpell: The Spell to cast.
  • akTarget: An ObjectReference at which to aim the spell.
  • akOriginRef: The ObjectReference where to cast the spell from.

Return Value[edit | edit source]

None.

See Also[edit | edit source]