Background for Skyrim SE
Member of the ActiveMagicEffect script
floatfunctionGetMagnitude()Native

Description

Wiki Description

Returns the Magnitude of the Active Magic Effect.

Documentation Comment

returns the magnitude of the active effect


Caveats

CK Wiki - Notes

Scripts sometimes unable to call this function, if the effect dispels in the same second it is casted - e.g. effects with no duration, or quickly casting/releasing a concentration type spell, that call this function from the OnEffectStart event. To prevent this, it's better to call GetMagnitude() before OnEffectStart - with OnInit event; in this case this function appear to be fail-safe.


Examples

;Used self variable. Self was the script attached to this magic effect. 

Float Magnitude = self.GetMagnitude()
Debug.Trace("This magic effect has a strength value of" +Magnitude)

Auto-Generated Example

float returnedValue = myActiveMagicEffect__toCallFunctionOn.GetMagnitude()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.