Difference between revisions of "GetEffectMagnitudes - Potion"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Palingard
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Potion Script Returns the effects in order of magnitude attached to a potion. (This fu...")
 
imported>Palingard
Line 8: Line 8:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
float[] Function GetEffectMagnitudes(int n) native
float[] Function GetEffectMagnitudes() native
</source>
</source>
== Parameters ==
*n: The number of magnitudes in order that will be returned.


== Return Value ==
== Return Value ==

Revision as of 08:38, 23 September 2016

SKSE Member of: Potion Script

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

Syntax

float[] Function GetEffectMagnitudes() native

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