Page 1 of 1
Randomly select units each time you play? [Solved]
Posted: Sun Dec 28, 2008 4:20 pm
by 666rulerofclones
i was wondering how mav in his recent Aquaralis (hope i spelled it right

) Deep Sea map, the function of how it would randomly select one of the Convopack units each time you played Clone Wars Conquest. If he spills the beans, it should be placed in the FAQ thread! (im sure that its some sorta .lua function or something).
Topic renamed to help the search -Staff
Re: how does mav do it?
Posted: Sun Dec 28, 2008 5:00 pm
by Aman/Pinguin
He uses the "math.random()" function.
math.random(SmallestPossibleNumber,BiggestPossibleNumber)
I think you can figure out the rest yourself...
Re: how does mav do it?
Posted: Sun Dec 28, 2008 5:04 pm
by Master_Ben
Ooh very clever Aman/Pinguin.
Re: Randomly select units each time you play?
Posted: Tue Dec 30, 2008 12:25 am
by 666rulerofclones
thanks guys, ill try it out.
STAFF: thanks for renaming it although i couldnt find the topic and had to look for my name under the "author" section lol
