Clone Random Number of Objects?

onimike
15 Jan 2017, 19:03Hello again long time no see. Heard the news Alex might be leaving us which is really a bummer, I hope someone can come and fill his shoes.
With that aside I do have a question. I want to clone a number of object and move them to player.parent, I know how to get random integer and how to clone and move a single object but want to know if there's a way to clone x amount of objects and move all at once?
Any help always appreciated.
Mike
The Pixie
15 Jan 2017, 21:02Do a loop.
x = GetRandomInt(1, 10)
for (i, 1, x) {
CloneObjectAndMove (original, player.parent)
}

onimike
15 Jan 2017, 21:29Wow Pixie every time and you get it right out the gate, thank you so much this will save so much unnecessary cloneandmove scripts lol.
Thanks again Pixie you're a life saver
Mike