LaunchMagicSpell - ANDR PapyrusFunctions

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ANDR_PapyrusFunctions Script

Launch a spell from the given caster, from a certain bone node, at a target.

Syntax[edit | edit source]

Function LaunchMagicSpell(Actor akCaster, Spell akSpell, String sNodeName = "", ObjectReference akTarget = None, Projectile akProjectile, ObjectReference OriginSecondRef = None) Global Native

Examples[edit | edit source]

ANDR_PapyrusFunctions.LaunchMagicSpell(Game.GetPlayer(), Fireball, "WEAPON", NazeemRef, FireballProjectile)
; Have the player launch an fire ball spell, from the WEAPON node, at Nazeem.

Parameters[edit | edit source]

  • akCaster: the Actor casting the spell.
  • akSpell: the Spell to cast.
  • sNodeName: the name (string) of the skeleton bone node of the akCaster, the spell is launched from. If empty, it will be cast from the origin point of akCaster or OriginSecondRef (only if filled.)
  • akTarget: the ObjectReference the spell is aimed at.
  • OriginSecondRef: an optional second ObjectReference to launch the spell from (as proxy). If not None, sNodeName will be taken from this ref, instead of akCaster.

Return Value[edit | edit source]

None.

See Also[edit | edit source]