Clone Random Number of Objects?

Hello 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


Do a loop.

x = GetRandomInt(1, 10)
for (i, 1, x) {
  CloneObjectAndMove (original, player.parent)
}

Wow 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


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums