CastPotion - ANDR PapyrusFunctions

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ANDR_PapyrusFunctions Script

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

Syntax[edit | edit source]

Function CastPotion(Actor akSource, Potion akPotion, Actor akTarget) global native

Examples[edit | edit source]

ANDR_PapyrusFunctions.CastPotion(PlayerRef, HealingPotion01, NazeemRef)
; player has applied the effects of a healing potion on Nazeem!

Parameters[edit | edit source]

  • akSource: The Actor from which to "cast" the potion.
  • akPotion: The Potion to apply.
  • akTarget: The Actor at which to apply the potion'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 potions instead of spells.

See Also[edit | edit source]