View Single Post
09-23-09, 01:00 AM   #4
Katae
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 208
Not sure if I'm getting your meaning, but the first argument (index) can be used as many times as you want, it will always be the same within your function.

Code:
local function func(index)
  return index, index, index
end

local var1, var2, var3 = func(3) -- 3, 3, 3
  Reply With Quote