View Single Post
09-29-16, 01:31 AM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,325
If you're storing the value for later use: (Additional values in the vararg are ignored)
Code:
local unit=...


If you're running it through a function and just want the first value to be passed: (Parenthesis trim the value list to only allow the first to pass through)
Code:
somefunc((...))


The reason select(1,...) does nothing is because it's an arg shift function, you're telling it to shift the args so it starts at index 1, which it at the beginning of the vararg list.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 09-29-16 at 01:46 AM.
  Reply With Quote