NimrodX -> UnitY() is nil inside of a Target Detected event (5/30/2018 3:23:48 AM)
|
I have an event of the "target detected" sort. There is one single "Unit is Detected" trigger. I need it to fire only when a specific unit detects the target, so I need a Lua condition that uses ScenEdit_UnitY() to get the detecting unit. I have one single Lua condition for this purpose. So I have this code for the Lua condition: quote:
local by = ScenEdit_UnitY() return by.unit.guid == 'XiaoZhanMa-GUID' This was working perfectly fine earlier but at some point, for no apparent reason, 'by' is coming up as either nil or empty string every time it runs. Shoulnd't ScenEdit_UnitY() get set to the detecting unit for both conditions and actions?
|
|
|
|