GetEffectsMagnitude - Potion

From Creation Kit
Jump to: navigation, search

SKSE Member of: Potion Script

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

Syntax

float[] Function GetEffectMagnitudes(int n) native

Parameters

  • n: The number of magnitudes in order that will be returned.

Return Value

Returns the magnitude of the effects attached to this potion in order.

Examples

float[] magnitudes = potion.GetEffectMagnitudes(1)
Debug.Trace("Potion has effects in order of magnitude of " + magnitudes)

See Also