Jump to content

Trying to make an effect to reapply when unique actor is3dloaded


Recommended Posts

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?
Link to comment

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. 

Link to comment

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'. 

 

Link to comment

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. 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use