Monty Posted May 20, 2012 Posted May 20, 2012 i alway use the code setElementModel(source, ID) is possible to specify some IDs and and say to get one of the accidentaly??? ANY SCRIPT REQUEST FOR FREE HERE: http://www.stolka.altervista.org
Kenix Posted May 20, 2012 Posted May 20, 2012 I don't understand what you mean. Explain better please. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Wei Posted May 20, 2012 Posted May 20, 2012 like if he desides that he will have random skins like 1, 67, 100, 123, 213... that will chose the random of them i think Diet with russian vodka, lose 3 days in one week !
Monty Posted May 20, 2012 Author Posted May 20, 2012 i need somthing like blazy said ANY SCRIPT REQUEST FOR FREE HERE: http://www.stolka.altervista.org
Stanley Sathler Posted May 20, 2012 Posted May 20, 2012 Do you wanna set a random skin to a certain element? If yes, you can create a table containing all available skins: mySkins = { 111, 67, 1, 100, 10, 213 } --Create a table with available skins Later, use math.random() to get a random number and insert to mySkins[random_number]: mySkins = { 111, 67, 1, 100, 10, 213 } setElementModel(theElement, mySkins[math.random(1, #mySkins)]) Software Engineer & Entrepreneur • Running Lustrel and VilarikA • Highly engaged on open source community
Smart. Posted May 20, 2012 Posted May 20, 2012 StanleySathler: There is an easier way to do this. We'll still use math.random but we wont take ID's from a table we'll just pick a random ID from 1 - 288 setElementModel ( yourElement, math.random ( 1, 288 ) ) lol
Stanley Sathler Posted May 20, 2012 Posted May 20, 2012 @Seb, yes, I agree with you. But we need remember: between 1 and 288, there's some ID numbers that not exist. An example is the ID 8. Oh, and if he wanna set a specific group skin, maybe he must use a table. One love bro, Sathler. Software Engineer & Entrepreneur • Running Lustrel and VilarikA • Highly engaged on open source community
Smart. Posted May 20, 2012 Posted May 20, 2012 Oh shit, I never saw the specified part, my mistake lol
Stanley Sathler Posted May 20, 2012 Posted May 20, 2012 Seb:>, haha, don't worry. - Monty, and you? Solved your problem? Software Engineer & Entrepreneur • Running Lustrel and VilarikA • Highly engaged on open source community
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now