dizietemblesssma Posted September 30, 2020 Share Posted September 30, 2020 I was using a visual effect set in the CK in a script so that I could easily detect if a magiceffect was running on a character. Is there a way to set a visual effect from the script itself, so that I could use an If condition to check for a debugging variable being true and turn the aura on/off? diziet Link to comment Share on other sites More sharing options...
dylbill Posted September 30, 2020 Share Posted September 30, 2020 You can just use MyEffectShader.Play(Target) in the magic effect script: https://www.creationkit.com/index.php?title=Play_-_EffectShader Link to comment Share on other sites More sharing options...
dizietemblesssma Posted September 30, 2020 Author Share Posted September 30, 2020 Wow, do you peeps just learn all the functions? I wouldn't have even known what to look for:)I reckon this is what I need, thankyou diziet Link to comment Share on other sites More sharing options...
maxarturo Posted September 30, 2020 Share Posted September 30, 2020 (edited) Just a tip: Don't forget to always stop the "EffectShader" and the "VisualEffect", not stopping them will results in issues like. - The actor that the FX was applied, even if it plays for a few seconds, will leave behind visual leftovers, according to which FX you played, the leftover can be very visible or not. - Not stopping the FX and playing another one will open / run one more "FX Player", the previous "FX Player' will stay active even if it's not playing anything. This behavior stucks / builds up and according to the PC's power it will cause CTD, it might take a while on strong systems, but eventually it will CTD. Edited September 30, 2020 by maxarturo Link to comment Share on other sites More sharing options...
dizietemblesssma Posted September 30, 2020 Author Share Posted September 30, 2020 Just to clarify, the "EffectShader" and the "VisualEffect" are two separate types of thing? If all I've done is: If dz_mcm.debug_toggle debug.notification("Meta ability spell started - applying aura") aura = True AbsorbBlueFXS.Play(Target) EndIf then I just need: If aura == True AbsorbBlueFXS.Stop(Target) aura == False EndIf I don't need to stop anything else? diziet Link to comment Share on other sites More sharing options...
maxarturo Posted September 30, 2020 Share Posted September 30, 2020 Yes, the "EffectShader" and the "VisualEffect" are 2 different things, but they are both visual fxs that can also play on an actor. No you don't need to stop anything else, just remember that the VFX must be stopped. Link to comment Share on other sites More sharing options...
dizietemblesssma Posted October 1, 2020 Author Share Posted October 1, 2020 Thankyou both, all working now! diziet Link to comment Share on other sites More sharing options...
Recommended Posts