After reanimating a dead body, and then going into a "load screen" to transition to a new area, the reanimated undead appears next to you. But even if you still have a lot of time left on the spell, the actor will remain motionless and turn to ash immediately.
I have located the source of the problem. Reanimate spells have two parts. One magic effect is responsible for bringing the actor back to life for a limited time, and the other effect is responsible for giving it that purple swirly glow effect, giving it the blue swirls as it is rising from the dead, and turning it into ash when it dies or the time expires.
The first magic effect, since it is attached to the player, is just fine. Moving to a new area causes no problems, the effect will remain on the player and thus the "minion" will remain reanimated and continue to follow you. The second effect, which is attached to the minion, is the source of the problem.
It is immediately dispelled as soon as you go into a loading screen, which is responsible for the actor turning to ash as it appears next to you.
I have eliminated that particular problem by editing the script (well, making a new, similar script) to remove the "turntoash()" function from the "OnEffectFinish()" event, which means that under all normal circumstances when the actor would die due to the duration running out or being killed, it will still turn to ash, but it will not turn to ash when moving to a new area because when the effect is removed, it doesn't call that function.
However, this introduces a new problem. When the actor dies after moving to a new location with this change in the script, it will NOT turn to ash because there is no magic effect associated with the actor. The actor will also not have the cool purple glow to it.
I am here to ask for ideas to fix this bug. Is there a way to track the time remaining on the effect, and then re-apply an effect to an actor the moment it steps into a new area with the remaining duration?

