- Found in:
- SKSE
Description
Wiki Description
Sets the magnitude of the specified effect.
Documentation Comment
sets the magnitude of the specified effect
Caveats
CK Wiki - Notes
- Changes made by this function will not persist across game reloads. Using a maintenance function is one way to maintain them.
- If you use SetNthEffectMagnitude to change the magnitude(s) of an ability spell that has already been added to an actor, the actor will not receive those changes. This is because of how magic effects work: when the actor first received the ability, new ActiveMagicEffect instances were created on that actor based on data copied from the spell's defined magic effects. To update those ActiveMagicEffects, you have to replace them: you must Actor.RemoveSpell(...) and Actor.AddSpell(...) the ability spell to the actor.
Parameters
intindex
CK Wiki Description
The index of the Magic Effect to change.
floatvalue
CK Wiki Description
The Magnitude to set the Magic Effect to.
Examples
No human-generated examples found for this function.
Auto-Generated Example
int myInt__index
float myFloat__value
mySpell__toCallFunctionOn.SetNthEffectMagnitude(myInt__index, myFloat__value)