Relevant Halo Posted December 2, 2016 Posted December 2, 2016 Hi, I wrote a script that runs on startup that has an array of objects I have since added more objects to the script via the scripting tab on creation kit. However because arrays are immutable, the script does not use the new objects. (works fine in a new game). Using the restartscript command didn't seem to work. Is there another way to restart the script?
Andy14 Posted December 2, 2016 Posted December 2, 2016 Why not empty / reset the array? Example: Function resetArray() int i=0 While i < myArray.Length myArray=none i +=1 endWhile endFunction Then the index count should be reset. The index count is probably global and is incremented in your function that fills your array.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.