Jump to content

Trying to make an effect to reapply when unique actor is3dloaded


Recommended Posts

Posted
Hello all,
I'm trying to make a script to reapply an effect everytime a unique actor is3dloaded and have no idea how to accomplish this. 
Is for a follower actor I want to reapply skeleton netimmerse changes when the actor is reloaded. The script I have applies the effect correctly, but everytime the actor is reloaded (like when crossing a door) the effect resets.
Anybody have any idea how this type of thing can be done?
Posted

You can either attach the script to a single reference or the base npc. 

 

Depends in whether you want all copies of this npc to have the effect or just a single one. 

 

If you want all copies to have it then you attach the script to the base npc under 'character -> Actor'. 

 

If you want a single reference to have it then find the reference by navigating to where you placed it in the cell view. Right click on it and edit. Look for the scripts tab. 

Posted

Thanks! Would you believe if I tell you I NEVER noticed there was a place to add scripts to the npc there? I will try this asap and say here if it worked.

28 minutes ago, Monoman1 said:

 

If you want all copies to have it then you attach the script to the base npc under 'character -> Actor'. 

 

Posted

You should attach debug.messageboxes to the Onload event before any conditions. And add Event OnUnload with a message box as well. 

 

You need to understand when the events are fired. Onload is fairly obvious. Onunload is less so. And load event won't happen until unload. Certain cell transitions won't unload an ObjRef. 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...