Difference between revisions of "GetEffectAreas- Potion"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Notanon
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Potion Script Returns the effects in order of area effected attached to a potion. (Thi...")
 
imported>Palingard
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
int Function GetEffectAreas(int n) native
int[] Function GetEffectAreas() native
</source>
</source>
== Parameters ==
*n: The number of effect areas in order that will be returned.


== Return Value ==
== Return Value ==
Line 19: Line 16:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
int duration = potion.GetEffectAreas(1)
int[] areas = potion.GetEffectAreas()
Debug.Trace("Potion has effect areas in order of " + magnitude)
Debug.Trace("Potion has effect areas in order of " + areas)
</source>
</source>


== See Also ==
== See Also ==
*[[Potion Script]]
*[[Potion Script]]

Latest revision as of 09:41, 23 September 2016

SKSE Member of: Potion Script

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

Syntax[edit | edit source]

int[] Function GetEffectAreas() native

Return Value[edit | edit source]

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

Examples[edit | edit source]

int[] areas = potion.GetEffectAreas()
Debug.Trace("Potion has effect areas in order of " + areas)

See Also[edit | edit source]