Mod:Creation Kit/PopTo - ImageSpaceModifier

Member of: Mod:Creation Kit/ImageSpaceModifier Script

Disables this image space modifier and immediately enables the new one at the specified strength, "popping" to it. Note that this will not affect any image space modifier crossfade going on, assuming both this and the new modifier aren't involved in it.

Syntax
Function PopTo(ImageSpaceModifier akNewModifier, float afStrength = 1.0) native

Parameters

 * akNewModifier: The new modifier to enable.
 * afStrength: How "strong" the effect will be. 0 is no effect, 1 is full effect, though the strength is not clamped to this range. Numbers outside this range may provide... interesting results.
 * Default: 1.0

Return Value
None.

Examples
Mod1.PopTo(Mod2) Mod1.PopTo(Mod2, 0.5)
 * Pop from modifier 1 to modifier 2 at full strength
 * Pop from modifier 1 to modifier 2 at half strength