GetMagicEffects- Potion

From the CreationKit Wiki
Revision as of 23:58, 25 April 2017 by imported>Lisselli (returns an array)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE Member of: Potion Script

Returns the magics effects attached to a potion in order. (This function requires SKSE)

Syntax[edit | edit source]

MagicEffect[] Function GetMagicEffects() native

Return Value[edit | edit source]

Returns the magic effect areas of the effects attached to this potion in order.

Examples[edit | edit source]

MagicEffect[] effects = potion.GetMagicEffects()
Debug.Trace("Potion has magic effects" + effects)

Notes[edit | edit source]

  • Return value can be misleading. This function returns an array of magic effects.

See Also[edit | edit source]