Returning multiple values, what?
GetColorAsRGB()
Returns: number red, number green, number blue
Can someone explain how to read this, I have never encountered a function that returns 3 separate values. Printing out what it returns gives me 1 all the time, how do I read the individual ones?
Edit, think I figured it out: local r, g, b = GetColorAsRGB();
But r g and b are all returning 1, so not sure if I did this correctly.
Last edited by Tingle0x539 : 04/01/14 at 03:43 AM.
|