Replicate entire script series, all entailed objects and variables
Hello,
I'm working on a script that requires several occurences of the same objects and scripting to boot, but I don't just want to replicate the same code over and over again using upteen new custom created variables and strings. I want it to work like instantiate where all necessary coding will work independently of the previous occurence.
Essentially, this code contains: Scripting in the initial flagging, on Update, and on GUI,
floats, booleans, vectors, if/then statements, objects paired with vector positions, calculations between vector data and floats, quarternions, and lastly GUI labels which acquire screen coordinate data from these vectors.
I want to be able to replicate this script to have as many occurences as I want until I click Fire2. When Fire2 is clicked, it will revert all base variables to initial position, all objects to initial position, and delete all the cloned instances.
I was also considering making an activation sequence script outside of this script which would call for instances of this script whenever a trigger is activated, then additional instances removed when the second trigger is activated.
@Bunny83 I noticed you have some things to say about instantiate. Hopefully you see where I'm getting at with this. Cheers!
Your answer
