View Single Post
06-18-12, 04:00 PM   #9
Billtopia
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 110
something on unpack that I didn't see above is for nils is in order for it to properly unpack the table all the values should be assigned at one time like the following

local temp = { nil, 1, nil, nil, nil, "blah", whatever }

if they are assigned separately it would not unpack right but as a single declaration the following would work fine

local var1, var2, var3, var4, var5, var6, var7 = unpack( temp )
  Reply With Quote