RegisterForSingleUpdate + Saves

Post » Wed Aug 14, 2013 11:20 am

Just a quick question.

Let's say I made the following MagicEffect applied to an actor:

.. extends MagicEffectActor npcEvent OnInit()npc = Self.GetTargetActor()RegisterForSingleUpdate(1)EndEventEvent OnUpdate()....do stuff on ActorRegisterForSingleUpdate(1)EndEvent... 

When I save and move to another location, so the actor is detached/unloaded, will that script still run?
Or is it paused and executed again when the actor enters?

User avatar
Nikki Hype
 
Posts: 3429
Joined: Mon Jan 01, 2007 12:38 pm

Post » Wed Aug 14, 2013 12:31 pm

anything with a script running on it should be persistent--meaning the actor will stick around until the script has finished updating and running. A good description of the details that make something persistent: http://www.creationkit.com/Persistence_(Papyrus)

User avatar
alyssa ALYSSA
 
Posts: 3382
Joined: Mon Sep 25, 2006 8:36 pm

Post » Wed Aug 14, 2013 2:26 am

Yes but it's a magiceffect with a script. They usually dispel themselves on death, dunno if they do when unloading actors

User avatar
..xX Vin Xx..
 
Posts: 3531
Joined: Sun Jun 18, 2006 6:33 pm


Return to V - Skyrim