Difference between revisions of "GetMagicEffects- Potion"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Palingard
imported>Lisselli
m (returns an array)
 
Line 19: Line 19:
Debug.Trace("Potion has magic effects" + effects)
Debug.Trace("Potion has magic effects" + effects)
</source>
</source>
 
== Notes ==
* Return value can be misleading. This function returns an array of magic effects.
== See Also ==
== See Also ==
*[[Potion Script]]
*[[Potion Script]]

Latest revision as of 23:58, 25 April 2017

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]