Is it possible to create a list of variables from an array on lua?
R, G, B = getColors() function getColors() return {255, 128, 0} end Is it possible to create a list of variables from an array on lua?
R, G, B = getColors() function getColors() return {255, 128, 0} end Source: https://ru.stackoverflow.com/questions/584288/
All Articles
R, G, B = getColors()[1], getColors()[2], getColors()[3]So it works, but I hope for something shorter - Mr. Black