Jump to content

Papyrus: Question about "Const" Script Flag


Recommended Posts

Greetings all,

So I have a script that I needed to create so I could keep track of an array that can be used between multiple different Events within the same script. As such I had to remove the "Const" flag from the script. The array is basically a collection of Indexes that are determined through a function that is executed in the OnLoad Event. My question is whether or not this script will get unloaded when the Actor I attached it to is unloaded? If not, is there a way I can unload the script in the OnUnload Event? Once the Actor is dead or not loaded there is no need for the script to retain any information.

The script works fine. I'm just making sure my script won't store a bunch of useless information in a save game.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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