Nightasy Posted May 31, 2016 Share Posted May 31, 2016 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 More sharing options...
CaptainCockerel Posted June 4, 2016 Share Posted June 4, 2016 I'm not sure, but couldn't you set your array to ArrayProperty = None in your OnUnload? Calling that should permanently unlink the property from being referenced. Link to comment Share on other sites More sharing options...
Recommended Posts