I'm trying to create a script that replaces an actor with another actor now to make it looks less stupid I'm applying a EffectShader to the first actor and then replacing it with the new actor. The problem is once I disable the first actor the effectshader instantly goes away. Is there a different way to apply this effectshader without it getting removed instantly? I've to disable the first actor first or the other actor will spawn in a completely different location which is not what I want. I've tried finding a fix for this for several hours without any luck. Video of what happens atm: ttps://imgur.com/a/140sDjK Current Code:
Event OnEffectStart(Actor akTarget, Actor akCaster)
InvisFloor.MoveTo(akTarget as objectreference, 0.000000, 0.000000, -25.000000, true)
InvisFloor.Enable(false)
FX5.Play(akTarget,10.0)
utility.wait(3.0)
akTarget.Disable()
akTarget.Delete()
NewActor = InvisFloor.PlaceActorAtMe(ReplacementActor)
FX5.Play(NewActor,10.0)
EndEvent