Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/01/14, 03:32 AM   #1
Tingle0x539
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 25
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.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Returning multiple values, what?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off