Background for Skyrim SE
Member of the ANDR_PapyrusFunctions script
voidfunctionCastPotion(ActorakSource, PotionakPotion, ActorakTarget)NativeGlobal

Description

Wiki Description

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

Documentation String

  • akSource: The Actor from which to cast the Potion.
  • akPotion: Potion to cast.
  • akTarget: Actor at which to aim the Potion.

Caveats

CK Wiki - Notes

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

Parameters

ActorakSource

CK Wiki Description

The Actor from which to "cast" the potion.

PotionakPotion

CK Wiki Description

The Potion to apply.

ActorakTarget

CK Wiki Description

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


Examples

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

Auto-Generated Example

Actor myActor__akSource
Potion myPotion__akPotion
Actor myActor__akTarget

ANDR_PapyrusFunctions.CastPotion(myActor__akSource, myPotion__akPotion, 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.