Hi all. Lets say you have an object that defines dog_1, dog_2, dog_3. Could you create a referenceable dog_1 with something like this?:
var i = 1
current_dog = "dog_" + string(i)
I know the above code would simply create a string "dog_1" and clearly can't be referenced from anything else, but is there a way to make this referenceable without an array? Or is the answer simply, "use an array and a for loop dummy! Any other way would look ridiculous and be inefficient!"
edit: nevermind, guess it is not possible
Thanks,
var i = 1
current_dog = "dog_" + string(i)
I know the above code would simply create a string "dog_1" and clearly can't be referenced from anything else, but is there a way to make this referenceable without an array? Or is the answer simply, "use an array and a for loop dummy! Any other way would look ridiculous and be inefficient!"
edit: nevermind, guess it is not possible
Thanks,
Last edited: