View Single Post
09-18-18, 09:36 PM   #4
Lyak
A Cyclonian
Join Date: Jul 2018
Posts: 46
Originally Posted by myrroddin View Post
RegisterUnitEvent looks for unitIDs, which are strings. "player", "target", "boss1", "raid9", etc. What you are passing is a table, which means it probably has a fallback to a valid unitID, or string.
Hi myrroddin,

But the problem persist even if I try these

Lua Code:
  1. object:RegisterUnitEvent("UNIT_AURA", nil, "player");
  2. -- or
  3. object:RegisterUnitEvent("UNIT_AURA", "player", nil);

Originally Posted by Vrul View Post
As long as the table has at least one entry then this should work:
Code:
object:RegisterUnitEvent(event, unpack(unit))
Ah! That's a great tip!

Thank you Vrul
  Reply With Quote