GetMagicEffects- Potion

From Creation Kit
Revision as of 2017-04-25T23:58:06 by Lisselli (Talk | contribs) (returns an array)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SKSE Member of: Potion Script

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

Syntax

MagicEffect[] Function GetMagicEffects() native

Return Value

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

Examples

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

Notes

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

See Also